mirror of https://github.com/M66B/FairEmail.git
Check for orphan FingerprintDialogFragment
This commit is contained in:
parent
4b45b852a7
commit
92a08fddb2
|
@ -191,8 +191,10 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
FragmentManager fm = getSupportFragmentManager();
|
||||
|
||||
Fragment bfragment = fm.findFragmentByTag("androidx.biometric.BiometricFragment");
|
||||
if (bfragment == null)
|
||||
bfragment = fm.findFragmentByTag("androidx.biometric.FingerprintDialogFragment");
|
||||
if (bfragment != null) {
|
||||
Log.e("Orphan BiometricFragment");
|
||||
Log.e("Orphan fragment tag=" + bfragment.getTag());
|
||||
fm.beginTransaction().remove(bfragment).commitNowAllowingStateLoss();
|
||||
/*
|
||||
java.lang.RuntimeException: Unable to start activity ComponentInfo{eu.faircode.email/eu.faircode.email.ActivitySetup}: androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment androidx.biometric.FingerprintDialogFragment: could not find Fragment constructor
|
||||
|
|
Loading…
Reference in New Issue