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

Commit 099fac63 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Update UDFPS "press to unlock" strings" into tm-dev

parents 603dfa75 8fd6efd7
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@
    <!-- Message shown when a biometric is authenticated, waiting for the user to confirm authentication [CHAR LIMIT=40]-->
    <string name="biometric_dialog_tap_confirm">Tap Confirm to complete</string>
    <!-- Message shown when a biometric has authenticated with a user's face and is waiting for the user to confirm authentication [CHAR LIMIT=60]-->
    <string name="biometric_dialog_tap_confirm_with_face">Unlocked by face. Press to continue.</string>
    <string name="biometric_dialog_tap_confirm_with_face">Unlocked by face. Press the unlock icon to continue.</string>
    <!-- Talkback string when a biometric is authenticated [CHAR LIMIT=NONE] -->
    <string name="biometric_dialog_authenticated">Authenticated</string>

@@ -796,8 +796,11 @@
    <!-- Message shown when lock screen is tapped or face authentication fails. [CHAR LIMIT=60] -->
    <string name="keyguard_unlock">Swipe up to open</string>

    <!-- Message shown when lock screen is tapped or face authentication fails. Provides extra instructions for how the user can enter their device (unlock or proceed to home) [CHAR LIMIT=60] -->
    <string name="keyguard_unlock_press">Press to open</string>
    <!-- Message shown when lock screen is unlocked (ie: by trust agent) and the user taps the empty space on the lock screen and UDFPS is supported. Provides extra instructions for how the user can enter their device [CHAR LIMIT=60] -->
    <string name="keyguard_unlock_press">Press the unlock icon to open</string>

    <!-- Message shown when non-bypass face authentication succeeds and UDFPS is supported. Provides extra instructions for how the user can enter their device [CHAR LIMIT=60] -->
    <string name="keyguard_face_successful_unlock_press">Unlocked by face. Press the unlock icon to open.</string>

    <!-- Message shown when face authentication fails and the pin pad is visible. [CHAR LIMIT=60] -->
    <string name="keyguard_retry">Swipe up to try again</string>
+5 −1
Original line number Diff line number Diff line
@@ -1173,7 +1173,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
                || isSimPinSecure());
    }

    private boolean getIsFaceAuthenticated() {
    /**
     * @return whether the current user has been authenticated with face. This may be true
     * on the lockscreen if the user doesn't have bypass enabled.
     */
    public boolean getIsFaceAuthenticated() {
        boolean faceAuthenticated = false;
        BiometricAuthenticated bioFaceAuthenticated = mUserFaceAuthenticated.get(getCurrentUser());
        if (bioFaceAuthenticated != null) {
+4 −1
Original line number Diff line number Diff line
@@ -887,7 +887,10 @@ public class KeyguardIndicationController {
            if (mKeyguardUpdateMonitor.isUdfpsSupported()
                    && mKeyguardUpdateMonitor.getUserCanSkipBouncer(
                    KeyguardUpdateMonitor.getCurrentUser())) {
                showBiometricMessage(mContext.getString(R.string.keyguard_unlock_press));
                final int stringId = mKeyguardUpdateMonitor.getIsFaceAuthenticated()
                        ? R.string.keyguard_face_successful_unlock_press
                        : R.string.keyguard_unlock_press;
                showBiometricMessage(mContext.getString(stringId));
            } else {
                showBiometricMessage(mContext.getString(R.string.keyguard_unlock));
            }