Skip to content

Commit 0924124

Browse files
committed
Mark userDecision property as volatile
1 parent c91fbb4 commit 0924124

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sample-app/src/main/java/at/bitfire/cert4android/demo/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ class MainActivity : ComponentActivity() {
179179
private val _certificateFlow = MutableStateFlow<X509Certificate?>(null)
180180
val certificateFlow: StateFlow<X509Certificate?> = _certificateFlow
181181

182+
@Volatile
182183
private var userDecision: CompletableDeferred<Boolean> = CompletableDeferred()
183184

184185
fun setUserDecision(decision: Boolean) {

0 commit comments

Comments
 (0)