Clear face re-enroll setting when all faces removed

Test: manual
Bug: 141254937
Change-Id: Ib6d23a39ac3d5a8251c3752d6d8b5e698a3069bb
This commit is contained in:
Curtis Belmonte
2019-09-26 16:02:41 -07:00
parent cfc621518c
commit 8cfe3715fa

View File

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