Browse Source

Reuse existing method

vishnukvmd 2 years ago
parent
commit
82b229f4ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/services/local_authentication_service.dart

+ 2 - 2
lib/services/local_authentication_service.dart

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