Skip to content

Commit

Permalink
Mark userDecision property as volatile
Browse files Browse the repository at this point in the history
  • Loading branch information
sunkup committed Feb 25, 2025
1 parent c91fbb4 commit 0924124
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ class MainActivity : ComponentActivity() {
private val _certificateFlow = MutableStateFlow<X509Certificate?>(null)
val certificateFlow: StateFlow<X509Certificate?> = _certificateFlow

@Volatile
private var userDecision: CompletableDeferred<Boolean> = CompletableDeferred()

fun setUserDecision(decision: Boolean) {
Expand Down

0 comments on commit 0924124

Please sign in to comment.