add a missing check that password clearing task is running

fixes #351
This commit is contained in:
Mohamed 2017-11-19 12:13:38 +01:00
parent 3d5dd65e30
commit b2839eb0a1

View file

@ -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)