diff options
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt | 6 |
1 files changed, 3 insertions, 3 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 70e10561..665e8b7b 100644 --- a/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt +++ b/app/src/main/java/com/zeapo/pwdstore/crypto/PgpActivity.kt @@ -722,7 +722,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { @Suppress("StaticFieldLeak") inner class DelayShow(val activity: PgpActivity) : AsyncTask<Void, Int, Boolean>() { - private val pb: ProgressBar by lazy { pbLoading } + private val pb: ProgressBar? by lazy { pbLoading } private var skip = false private var cancelNotify = ConditionVariable() @@ -761,7 +761,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { // treat 0 as forever, and the user must exit and/or clear clipboard on their own cancel(true) } else { - this.pb.max = showTime + this.pb?.max = showTime } } @@ -814,7 +814,7 @@ class PgpActivity : AppCompatActivity(), OpenPgpServiceConnection.OnBound { } override fun onProgressUpdate(vararg values: Int?) { - this.pb.progress = values[0] ?: 0 + this.pb?.progress = values[0] ?: 0 } } |