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

Commit 8fd6efd7 authored by Beverly's avatar Beverly
Browse files

Update UDFPS "press to unlock" strings

To make it clear to the user that we're asking
that they press on the unlock icon.

Fixes: 227501872
Test: trigger face auth, see message
Test: enable a trust agent, then tap empty space on LS,
see message

Change-Id: I4f0d5c9e3be2870a038276944e3e2b3e9ae77630
parent 336b6a15
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
@@ -1160,7 +1160,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));
            }