Repository: flutter
Issue: [local_auth] There are `java.lang.IllegalStateException` on some devices in production
Labels: c: crash,platform-android,p: local_auth,package,a: release,P2,c: fatal crash,team-android,triaged-android

Hello!
Google Play shows me exceptions in production like that:
1.
```
java.lang.IllegalStateException: 
  at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor (AppCompatDelegateImpl.java:686)
  at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor (AppCompatDelegateImpl.java:649)
  at androidx.appcompat.app.AppCompatDelegateImpl.setContentView (AppCompatDelegateImpl.java:542)
  at androidx.appcompat.app.AppCompatDialog.setContentView (AppCompatDialog.java:95)
  at androidx.appcompat.app.AlertController.installContent (AlertController.java:232)
  at androidx.appcompat.app.AlertDialog.onCreate (AlertDialog.java:279)
  at android.app.Dialog.dispatchOnCreate (Dialog.java:524)
  at android.app.Dialog.show (Dialog.java:385)
  at androidx.fragment.app.DialogFragment.onStart (DialogFragment.java:486)
  at androidx.fragment.app.Fragment.performStart (Fragment.java:2632)
  at androidx.fragment.app.FragmentManagerImpl.moveToState (FragmentManagerImpl.java:915)
  at androidx.fragment.app.FragmentManagerImpl.moveFragmentToExpectedState (FragmentManagerImpl.java:1238)
  at androidx.fragment.app.FragmentManagerImpl.moveToState (FragmentManagerImpl.java:1303)
  at androidx.fragment.app.BackStackRecord.executeOps (BackStackRecord.java:439)
  at androidx.fragment.app.FragmentManagerImpl.executeOps (FragmentManagerImpl.java:2079)
  at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether (FragmentManagerImpl.java:1869)
  at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute (FragmentManagerImpl.java:1824)
  at androidx.fragment.app.FragmentManagerImpl.execPendingActions (FragmentManagerImpl.java:1727)
  at androidx.fragment.app.FragmentManagerImpl.executePendingTransactions (FragmentManagerImpl.java:183)
  at androidx.biometric.BiometricPrompt.authenticateInternal (BiometricPrompt.java:749)
  at androidx.biometric.BiometricPrompt.authenticate (BiometricPrompt.java:658)
  at io.flutter.plugins.localauth.AuthenticationHelper$1.run (AuthenticationHelper.java:200)
```
or that
2:
```
ava.lang.IllegalStateException: 
  at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply (DartMessenger.java:139)
  at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success (MethodChannel.java:238)
  at io.flutter.plugins.localauth.LocalAuthPlugin$1.onSuccess (LocalAuthPlugin.java:102)
  at io.flutter.plugins.localauth.AuthenticationHelper.onAuthenticationSucceeded (AuthenticationHelper.java:171)
  at androidx.biometric.FingerprintHelperFragment$1.lambda$onAuthenticationSucceeded$3$FingerprintHelperFragment$1 (FingerprintHelperFragment.java:147)
  at androidx.biometric.-$$Lambda$FingerprintHelperFragment$1$B3yO31xQgVO9U1LcWOukmKVRCEg.run (lambda)
```

**flutter doctor -v**
```
[✓] Flutter (Channel stable, 1.22.4, on Linux, locale en_US.UTF-8)
    • Flutter version 1.22.4 at /home/vvk/snap/flutter/common/flutter
    • Framework revision 1aafb3a8b9 (4 weeks ago), 2020-11-13 09:59:28 -0800
    • Engine revision 2c956a31c0
    • Dart version 2.10.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at /home/vvk/Android/Sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: /usr/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_275-8u275-b01-0ubuntu1~20.04-b01)
    • All Android licenses accepted.
```