|
@@ -40,7 +40,7 @@ class LocalAuthenticationService {
|
|
String errorDialogContent, [
|
|
String errorDialogContent, [
|
|
String errorDialogTitle = "",
|
|
String errorDialogTitle = "",
|
|
]) async {
|
|
]) async {
|
|
- if (await LocalAuthentication().isDeviceSupported()) {
|
|
|
|
|
|
+ if (await _isLocalAuthSupportedOnDevice()) {
|
|
AppLock.of(context).disable();
|
|
AppLock.of(context).disable();
|
|
final result = await requestAuthentication(
|
|
final result = await requestAuthentication(
|
|
infoMessage,
|
|
infoMessage,
|
|
@@ -65,6 +65,6 @@ class LocalAuthenticationService {
|
|
}
|
|
}
|
|
|
|
|
|
Future<bool> _isLocalAuthSupportedOnDevice() async {
|
|
Future<bool> _isLocalAuthSupportedOnDevice() async {
|
|
- return await LocalAuthentication().isDeviceSupported();
|
|
|
|
|
|
+ return LocalAuthentication().isDeviceSupported();
|
|
}
|
|
}
|
|
}
|
|
}
|