浏览代码

Reuse existing method

vishnukvmd 2 年之前
父节点
当前提交
82b229f4ff
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 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();
   }
   }
 }
 }