Reland: Fix a atomic usage
This commit is contained in:
1 parent
5c481df41f
commit
f305e68202
1 file changed
+1
-1
@@ -225,7 +225,7 @@ class ReaderActivity : EhActivity() {
|
||||
if (passwd.isEmpty())
|
||||
builder.setError(getString(R.string.passwd_cannot_be_empty))
|
||||
else {
|
||||
continuation.get()?.resume(passwd)
|
||||
continuation.getAndSet(null)?.resume(passwd)
|
||||
}
|
||||
}
|
||||
setOnCancelListener {
|
||||
|
||||
Reference in new issue
Block a user