Pin code: user has to enter pin code twice (#2005)
This commit is contained in:
parent
299bcc2bc7
commit
dfa0308db6
|
@ -20,6 +20,7 @@ Bugfix 🐛:
|
||||||
- Manual import of Megolm keys does back up the imported keys
|
- Manual import of Megolm keys does back up the imported keys
|
||||||
- Auto scrolling to the latest message when sending (#2094)
|
- Auto scrolling to the latest message when sending (#2094)
|
||||||
- Fix incorrect permission check when creating widgets (#2137)
|
- Fix incorrect permission check when creating widgets (#2137)
|
||||||
|
- Pin code: user has to enter pin code twice (#2005)
|
||||||
|
|
||||||
Translations 🗣:
|
Translations 🗣:
|
||||||
-
|
-
|
||||||
|
|
|
@ -218,9 +218,7 @@
|
||||||
|
|
||||||
<activity android:name=".features.terms.ReviewTermsActivity" />
|
<activity android:name=".features.terms.ReviewTermsActivity" />
|
||||||
<activity android:name=".features.widgets.WidgetActivity" />
|
<activity android:name=".features.widgets.WidgetActivity" />
|
||||||
<activity
|
<activity android:name=".features.pin.PinActivity" />
|
||||||
android:name=".features.pin.PinActivity"
|
|
||||||
android:launchMode="singleTop" />
|
|
||||||
|
|
||||||
<!-- Services -->
|
<!-- Services -->
|
||||||
|
|
||||||
|
|
|
@ -320,14 +320,19 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
|
||||||
Activity.RESULT_OK -> {
|
Activity.RESULT_OK -> {
|
||||||
Timber.v("Pin ok, unlock app")
|
Timber.v("Pin ok, unlock app")
|
||||||
pinLocker.unlock()
|
pinLocker.unlock()
|
||||||
|
|
||||||
|
// Cancel any new started PinActivity, after a screen rotation for instance
|
||||||
|
finishActivity(PinActivity.PIN_REQUEST_CODE)
|
||||||
}
|
}
|
||||||
else -> {
|
else -> {
|
||||||
|
if (pinLocker.getLiveState().value != PinLocker.State.UNLOCKED) {
|
||||||
// Remove the task, to be sure that PIN code will be requested when resumed
|
// Remove the task, to be sure that PIN code will be requested when resumed
|
||||||
finishAndRemoveTask()
|
finishAndRemoveTask()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onResume() {
|
override fun onResume() {
|
||||||
super.onResume()
|
super.onResume()
|
||||||
|
|
Loading…
Reference in New Issue