浏览代码

passcodemanager: Reordered auth type check statements.

ardevd 7 年之前
父节点
当前提交
385bb429c7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/owncloud/android/authentication/PassCodeManager.java

+ 2 - 2
src/main/java/com/owncloud/android/authentication/PassCodeManager.java

@@ -110,7 +110,7 @@ public class PassCodeManager {
     }
 
     private boolean passCodeShouldBeRequested() {
-        return (hasAuthenticationTimeoutExpired() && passCodeIsEnabled());
+        return (passCodeIsEnabled() && hasAuthenticationTimeoutExpired());
     }
 
     private boolean passCodeIsEnabled() {
@@ -119,7 +119,7 @@ public class PassCodeManager {
     }
 
     private boolean fingerprintShouldBeRequested() {
-        return (hasAuthenticationTimeoutExpired() && fingerprintIsEnabled());
+        return (fingerprintIsEnabled() && hasAuthenticationTimeoutExpired());
     }
 
     private boolean hasAuthenticationTimeoutExpired() {