Merge "Fix crash in fingerprint enrollment due to async transaction" into nyc-dev am: fb51827247

am: 76f9181061

* commit '76f9181061f550dc5de51ec9bed9c9d1ce9375b0':
  Fix crash in fingerprint enrollment due to async transaction
This commit is contained in:
Jim Miller
2016-03-07 21:42:50 +00:00
committed by android-build-merger

View File

@@ -175,7 +175,7 @@ public class FingerprintEnrollEnrolling extends FingerprintEnrollBase
if (!isChangingConfigurations()) {
if (mSidecar != null) {
mSidecar.cancelEnrollment();
getFragmentManager().beginTransaction().remove(mSidecar).commit();
getFragmentManager().beginTransaction().remove(mSidecar).commitAllowingStateLoss();
}
finish();
}
@@ -186,7 +186,7 @@ public class FingerprintEnrollEnrolling extends FingerprintEnrollBase
if (mSidecar != null) {
mSidecar.setListener(null);
mSidecar.cancelEnrollment();
getFragmentManager().beginTransaction().remove(mSidecar).commit();
getFragmentManager().beginTransaction().remove(mSidecar).commitAllowingStateLoss();
mSidecar = null;
}
super.onBackPressed();