Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38b9f835 authored by Jason Chang's avatar Jason Chang Committed by Automerger Merge Worker
Browse files

Merge "(1/2) Fix No clear steps for "re-enroll face unlock" into udc-dev am:...

Merge "(1/2) Fix No clear steps for "re-enroll face unlock" into udc-dev am: 58112a38 am: c2d72585

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21598439



Change-Id: I4bc62db249dc7163ee14002475faa4d8ea992eb0
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents d7972990 c2d72585
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ public class BiometricNotificationUtils {
    private static final String TAG = "BiometricNotificationUtils";
    private static final String RE_ENROLL_NOTIFICATION_TAG = "FaceService";
    private static final String BAD_CALIBRATION_NOTIFICATION_TAG = "FingerprintService";
    private static final String KEY_RE_ENROLL_FACE = "re_enroll_face_unlock";
    private static final int NOTIFICATION_ID = 1;
    private static final long NOTIFICATION_INTERVAL_MS = 24 * 60 * 60 * 1000;
    private static long sLastAlertTime = 0;
@@ -57,6 +58,7 @@ public class BiometricNotificationUtils {

        final Intent intent = new Intent("android.settings.FACE_SETTINGS");
        intent.setPackage("com.android.settings");
        intent.putExtra(KEY_RE_ENROLL_FACE, true);

        final PendingIntent pendingIntent = PendingIntent.getActivityAsUser(context,
                0 /* requestCode */, intent, PendingIntent.FLAG_IMMUTABLE /* flags */,