Skip to content

Commit

Permalink
Pin code: user has to enter pin code twice (#2005)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmarty committed Sep 23, 2020
1 parent b2b4633 commit 18562f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -15,6 +15,7 @@ Bugfix 🐛:
- Manual import of Megolm keys does back up the imported keys
- Auto scrolling to the latest message when sending (#2094)
- Fix incorrect permission check when creating widgets (#2137)
- Pin code: user has to enter pin code twice (#2005)

Translations 🗣:
-
Expand Down
Expand Up @@ -320,10 +320,15 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
Activity.RESULT_OK -> {
Timber.v("Pin ok, unlock app")
pinLocker.unlock()

// Cancel any new started PinActivity, after a screen rotation for instance
finishActivity(PinActivity.PIN_REQUEST_CODE)
}
else -> {
// Remove the task, to be sure that PIN code will be requested when resumed
finishAndRemoveTask()
if (pinLocker.getLiveState().value != PinLocker.State.UNLOCKED) {
// Remove the task, to be sure that PIN code will be requested when resumed
finishAndRemoveTask()
}
}
}
}
Expand Down

0 comments on commit 18562f8

Please sign in to comment.