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
This commit is contained in:
Kevin Chyn
2020-06-11 12:59:05 -07:00
parent 5c1b9c357d
commit 895ddf239a

View File

@@ -124,7 +124,8 @@ public class BiometricFragment extends InstrumentedFragment {
private void cleanup() {
if (getActivity() != null) {
getActivity().getSupportFragmentManager().beginTransaction().remove(this).commit();
getActivity().getSupportFragmentManager().beginTransaction().remove(this)
.commitAllowingStateLoss();
}
}