diff options
author | Mohamed <mohamed@zenadi.com> | 2017-11-19 12:13:38 +0100 |
---|---|---|
committer | Mohamed <mohamed@zenadi.com> | 2017-11-19 12:13:38 +0100 |
commit | b2839eb0a166cdff87e1a1a2433f036bb71be203 (patch) | |
tree | c5b7f85c46830004b0c3c8d4c4381823512827d1 /app/src/main | |
parent | 3d5dd65e306ba3ca560b3c221830ee4cdb4363fb (diff) |
add a missing check that password clearing task is running
fixes #351
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt index 905f37bf..3b47bf66 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -495,7 +495,10 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { } private fun setTimer() { - delayTask?.skip = true + // if the previous task is still running, do not ask it to clear the password + if (delayTask?.status == AsyncTask.Status.RUNNING) { + delayTask?.skip = true + } // launch a new one delayTask = DelayShow(this) |