New strings and utlity method tweaks associated with updated account unlock screen flow.
- 'setPermanentlyLocked(false)' no longer automatically resets the pattern - new string for "waiting to verify account" progress dialog - new string for account unlock screen title when you aren't past the too many attempts, but just hit the 'forgot pattern' button
This commit is contained in:
@ -316,20 +316,14 @@ public class LockPatternUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the state of whether the device is permanently locked, meaning the user
|
* Set the state of whether the device is permanently locked, meaning the user
|
||||||
* must authenticate via other means. If false, that means the user has gone
|
* must authenticate via other means.
|
||||||
* out of permanent lock, so the existing (forgotten) lock pattern needs to
|
*
|
||||||
* be cleared.
|
|
||||||
* @param locked Whether the user is permanently locked out until they verify their
|
* @param locked Whether the user is permanently locked out until they verify their
|
||||||
* credentials. Occurs after {@link #FAILED_ATTEMPTS_BEFORE_RESET} failed
|
* credentials. Occurs after {@link #FAILED_ATTEMPTS_BEFORE_RESET} failed
|
||||||
* attempts.
|
* attempts.
|
||||||
*/
|
*/
|
||||||
public void setPermanentlyLocked(boolean locked) {
|
public void setPermanentlyLocked(boolean locked) {
|
||||||
setBoolean(LOCKOUT_PERMANENT_KEY, locked);
|
setBoolean(LOCKOUT_PERMANENT_KEY, locked);
|
||||||
|
|
||||||
if (!locked) {
|
|
||||||
setLockPatternEnabled(false);
|
|
||||||
saveLockPattern(null);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:drawableLeft="@drawable/ic_lock_idle_lock"
|
android:drawableLeft="@drawable/ic_lock_idle_lock"
|
||||||
android:drawablePadding="5dip"
|
android:drawablePadding="5dip"
|
||||||
android:text="@android:string/lockscreen_glogin_too_many_attempts"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- spacer below header -->
|
<!-- spacer below header -->
|
||||||
|
@ -1294,7 +1294,11 @@
|
|||||||
their lock gesture -->
|
their lock gesture -->
|
||||||
<string name="lockscreen_forgot_pattern_button_text">Forgot pattern?</string>
|
<string name="lockscreen_forgot_pattern_button_text">Forgot pattern?</string>
|
||||||
|
|
||||||
<!-- Title of the unlock screen that uses your Google login and password -->
|
<!-- Title of the unlock screen that uses your Google login and password when the user hit
|
||||||
|
the 'forgot pattern' button.-->
|
||||||
|
<string name="lockscreen_glogin_forgot_pattern">Account unlock</string>
|
||||||
|
<!-- Title of the unlock screen that uses your Google login and password when the user attempted
|
||||||
|
too many patterns and we are forcing them to use their account instead. -->
|
||||||
<string name="lockscreen_glogin_too_many_attempts">Too many pattern attempts!</string>
|
<string name="lockscreen_glogin_too_many_attempts">Too many pattern attempts!</string>
|
||||||
<!-- In the unlock screen, message telling the user that they need to use their Google login and password to unlock the phone -->
|
<!-- In the unlock screen, message telling the user that they need to use their Google login and password to unlock the phone -->
|
||||||
<string name="lockscreen_glogin_instructions">To unlock, sign in with your Google account</string>
|
<string name="lockscreen_glogin_instructions">To unlock, sign in with your Google account</string>
|
||||||
@ -1307,6 +1311,9 @@
|
|||||||
<!-- Displayed to the user when unlocking the phone with a username and password fails. -->
|
<!-- Displayed to the user when unlocking the phone with a username and password fails. -->
|
||||||
<string name="lockscreen_glogin_invalid_input">Invalid username or password.</string>
|
<string name="lockscreen_glogin_invalid_input">Invalid username or password.</string>
|
||||||
|
|
||||||
|
<!-- Displayed in a progress dialog while a username and password are being checked. -->
|
||||||
|
<string name="lockscreen_glogin_checking_password">Checking...</string>
|
||||||
|
|
||||||
<!-- A format string for 12-hour time of day, just the hour, not the minute, with lower-case "am" or "pm" (example: "3pm"). -->
|
<!-- A format string for 12-hour time of day, just the hour, not the minute, with lower-case "am" or "pm" (example: "3pm"). -->
|
||||||
<string name="hour_ampm">"<xliff:g id="hour" example="3">%-l</xliff:g><xliff:g id="ampm" example="pm">%P</xliff:g>"</string>
|
<string name="hour_ampm">"<xliff:g id="hour" example="3">%-l</xliff:g><xliff:g id="ampm" example="pm">%P</xliff:g>"</string>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user