[local_auth] Fix incorrect switch fallthrough (#3473)
diff --git a/packages/local_auth/CHANGELOG.md b/packages/local_auth/CHANGELOG.md
index 8bb043f..152ffb6 100644
--- a/packages/local_auth/CHANGELOG.md
+++ b/packages/local_auth/CHANGELOG.md
@@ -2,10 +2,14 @@
* Allow pin, passcode, and pattern authentication with `authenticate` method
* **Breaking change**. Parameter names refactored to use the generic `biometric` prefix in place of `fingerprint` in the `AndroidAuthMessages` class
- * `fingerprintHint` is now `biometricHint`
- * `fingerprintNotRecognized`is now `biometricNotRecognized`
- * `fingerprintSuccess`is now `biometricSuccess`
- * `fingerprintRequiredTitle` is now `biometricRequiredTitle`
+ * `fingerprintHint` is now `biometricHint`
+ * `fingerprintNotRecognized`is now `biometricNotRecognized`
+ * `fingerprintSuccess`is now `biometricSuccess`
+ * `fingerprintRequiredTitle` is now `biometricRequiredTitle`
+
+## 1.0.0-nullsafety.4
+
+* Fix incorrect error handling switch case fallthrough.
## 1.0.0-nullsafety.3
@@ -203,4 +207,4 @@
## 0.0.1
-* Initial release of local authentication plugin.
\ No newline at end of file
+* Initial release of local authentication plugin.
diff --git a/packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java b/packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java
index 096c7ef..3a7e2d7 100644
--- a/packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java
+++ b/packages/local_auth/android/src/main/java/io/flutter/plugins/localauth/AuthenticationHelper.java
@@ -138,6 +138,7 @@
return;
}
completionHandler.onError("NotAvailable", "Security credentials not available.");
+ break;
case BiometricPrompt.ERROR_NO_SPACE:
case BiometricPrompt.ERROR_NO_BIOMETRICS:
if (promptInfo.isDeviceCredentialAllowed()) return;
diff --git a/packages/local_auth/pubspec.yaml b/packages/local_auth/pubspec.yaml
index 0f5a588..79870cc 100644
--- a/packages/local_auth/pubspec.yaml
+++ b/packages/local_auth/pubspec.yaml
@@ -1,8 +1,8 @@
name: local_auth
-description: Flutter plugin for Android and iOS devices to allow local
+description: Flutter plugin for Android and iOS devices to allow local
authentication via fingerprint, touch ID, face ID, passcode, pin, or pattern.
homepage: https://github.com/flutter/plugins/tree/master/packages/local_auth
-version: 1.0.0-nullsafety.3
+version: 1.0.0-nullsafety.4
flutter:
plugin: