Skip to content

Commit

Permalink
Fix Check PIN during upgrade to v7 crash (#364)
Browse files Browse the repository at this point in the history
* Fix crash caused by showing CheckPinDuringUpgradeDialog after finishing AppUpgradeActivity
* This crash happens during an update from v6 and the user puts the enter PIN screen to the background after entering the PIN incorrectly 3 times and is required to wait a minute.
  • Loading branch information
tomasz-ludek authored Mar 25, 2020
1 parent 1a37c4a commit c2b794f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wallet/src/de/schildbach/wallet/ui/AppUpgradeActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,18 @@ class AppUpgradeActivity : AppCompatActivity() {
configuration.pinLength = PinPreviewView.CUSTOM_PIN_LENGTH

pinRetryController = PinRetryController.getInstance()
}

override fun onStart() {
super.onStart()
temporaryLockCheckRunnable.run()
}

override fun onStop() {
super.onStop()
temporaryLockCheckHandler.removeCallbacks(temporaryLockCheckRunnable)
}

private fun askForPin() {
title_pane.visibility = View.INVISIBLE
dash_logo.visibility = View.INVISIBLE
Expand Down

0 comments on commit c2b794f

Please sign in to comment.