소스 검색

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 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();
   }
 }