Merge "Moving fallback check code to Settings"
This commit is contained in:
@@ -126,8 +126,6 @@ public class LockPatternUtils {
|
|||||||
|
|
||||||
private static FileObserver sPasswordObserver;
|
private static FileObserver sPasswordObserver;
|
||||||
|
|
||||||
private static boolean mLastAttemptWasBiometric = false;
|
|
||||||
|
|
||||||
private static class PasswordFileObserver extends FileObserver {
|
private static class PasswordFileObserver extends FileObserver {
|
||||||
public PasswordFileObserver(String path, int mask) {
|
public PasswordFileObserver(String path, int mask) {
|
||||||
super(path, mask);
|
super(path, mask);
|
||||||
@@ -393,13 +391,6 @@ public class LockPatternUtils {
|
|||||||
setLong(DISABLE_LOCKSCREEN_KEY, disable ? 1 : 0);
|
setLong(DISABLE_LOCKSCREEN_KEY, disable ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets whether the last lockscreen setup attempt was biometric
|
|
||||||
*/
|
|
||||||
public static void setLastAttemptWasBiometric(boolean val) {
|
|
||||||
mLastAttemptWasBiometric = val;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if LockScreen can be disabled. This is used, for example, to tell if we should
|
* Determine if LockScreen can be disabled. This is used, for example, to tell if we should
|
||||||
* show LockScreen or go straight to the home screen.
|
* show LockScreen or go straight to the home screen.
|
||||||
@@ -430,15 +421,13 @@ public class LockPatternUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls back SetupFaceLock to delete the temporary gallery file if this is the backup lock.
|
* Calls back SetupFaceLock to delete the temporary gallery file
|
||||||
*/
|
*/
|
||||||
public void deleteTempGallery() {
|
public void deleteTempGallery() {
|
||||||
//if(mLastAttemptWasBiometric) {
|
Intent intent = new Intent().setClassName("com.android.facelock",
|
||||||
Intent intent = new Intent().setClassName("com.android.facelock",
|
"com.android.facelock.SetupFaceLock");
|
||||||
"com.android.facelock.SetupFaceLock");
|
intent.putExtra("deleteTempGallery", true);
|
||||||
intent.putExtra("deleteTempGallery", true);
|
mContext.startActivity(intent);
|
||||||
mContext.startActivity(intent);
|
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user