Fix crash when error is shown during invalid lifecycle.
Fix: 216492911 Test: manual Change-Id: I1de23885a9b80fabdc199ad09c35c3f98e86c831
This commit is contained in:
@@ -36,7 +36,7 @@ public class FingerprintErrorDialog extends BiometricErrorDialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
final FragmentManager fragmentManager = host.getSupportFragmentManager();
|
final FragmentManager fragmentManager = host.getSupportFragmentManager();
|
||||||
if (fragmentManager.isDestroyed()) {
|
if (fragmentManager.isDestroyed() || fragmentManager.isStateSaved()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user