Clear face re-enroll setting when all faces removed
Test: manual Bug: 141254937 Change-Id: Ib6d23a39ac3d5a8251c3752d6d8b5e698a3069bb
This commit is contained in:
@@ -53,6 +53,7 @@ import android.os.SELinux;
|
||||
import android.os.SystemProperties;
|
||||
import android.os.UserHandle;
|
||||
import android.os.UserManager;
|
||||
import android.provider.Settings;
|
||||
import android.util.Slog;
|
||||
|
||||
import com.android.internal.R;
|
||||
@@ -926,7 +927,8 @@ public class FaceService extends BiometricServiceBase {
|
||||
final Face face = new Face("", 0 /* identifier */, deviceId);
|
||||
FaceService.super.handleRemoved(face, 0 /* remaining */);
|
||||
}
|
||||
|
||||
Settings.Secure.putIntForUser(getContext().getContentResolver(),
|
||||
Settings.Secure.FACE_UNLOCK_RE_ENROLL, 0, UserHandle.USER_CURRENT);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user