@@ -126,8 +126,6 @@ public class LockPatternUtils {
126126
127127 private static FileObserver sPasswordObserver ;
128128
129- private static boolean mLastAttemptWasBiometric = false ;
130-
131129 private static class PasswordFileObserver extends FileObserver {
132130 public PasswordFileObserver (String path , int mask ) {
133131 super (path , mask );
@@ -393,13 +391,6 @@ public void setLockScreenDisabled(boolean disable) {
393391 setLong (DISABLE_LOCKSCREEN_KEY , disable ? 1 : 0 );
394392 }
395393
396- /**
397- * Sets whether the last lockscreen setup attempt was biometric
398- */
399- public static void setLastAttemptWasBiometric (boolean val ) {
400- mLastAttemptWasBiometric = val ;
401- }
402-
403394 /**
404395 * Determine if LockScreen can be disabled. This is used, for example, to tell if we should
405396 * show LockScreen or go straight to the home screen.
@@ -430,15 +421,13 @@ void moveTempGallery() {
430421 }
431422
432423 /**
433- * Calls back SetupFaceLock to delete the temporary gallery file if this is the backup lock.
424+ * Calls back SetupFaceLock to delete the temporary gallery file
434425 */
435426 public void deleteTempGallery () {
436- //if(mLastAttemptWasBiometric) {
437- Intent intent = new Intent ().setClassName ("com.android.facelock" ,
438- "com.android.facelock.SetupFaceLock" );
439- intent .putExtra ("deleteTempGallery" , true );
440- mContext .startActivity (intent );
441- //}
427+ Intent intent = new Intent ().setClassName ("com.android.facelock" ,
428+ "com.android.facelock.SetupFaceLock" );
429+ intent .putExtra ("deleteTempGallery" , true );
430+ mContext .startActivity (intent );
442431 }
443432
444433 /**
0 commit comments