BiometricFragment should commitAllowingStateLoss
This is a terminal case for both authentication as well as the
activity itself, so this should be safe.
Fixes: 158635014
Test: Builds
Change-Id: Ieef1ab305e6518dbc0ae34ad59d52da82895972a
diff --git a/src/com/android/settings/password/BiometricFragment.java b/src/com/android/settings/password/BiometricFragment.java
index fc9e42e..de2a1ff 100644
--- a/src/com/android/settings/password/BiometricFragment.java
+++ b/src/com/android/settings/password/BiometricFragment.java
@@ -124,7 +124,8 @@
private void cleanup() {
if (getActivity() != null) {
- getActivity().getSupportFragmentManager().beginTransaction().remove(this).commit();
+ getActivity().getSupportFragmentManager().beginTransaction().remove(this)
+ .commitAllowingStateLoss();
}
}