Fix lock screen timeout summary text on first use.
The lock screen timeout summary is inconsistent with the popup list when Security settings is launched for the first time. This fixes the inconsistency. Bug: 5064223 Change-Id: I8cbd7c06233faddd91ab29a1e046112a6f910935
This commit is contained in:
@@ -237,7 +237,7 @@ public class SecuritySettings extends SettingsPreferenceFragment
|
|||||||
private void updateLockAfterPreferenceSummary() {
|
private void updateLockAfterPreferenceSummary() {
|
||||||
// Update summary message with current value
|
// Update summary message with current value
|
||||||
long currentTimeout = Settings.Secure.getLong(getContentResolver(),
|
long currentTimeout = Settings.Secure.getLong(getContentResolver(),
|
||||||
Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 0);
|
Settings.Secure.LOCK_SCREEN_LOCK_AFTER_TIMEOUT, 5000);
|
||||||
final CharSequence[] entries = mLockAfter.getEntries();
|
final CharSequence[] entries = mLockAfter.getEntries();
|
||||||
final CharSequence[] values = mLockAfter.getEntryValues();
|
final CharSequence[] values = mLockAfter.getEntryValues();
|
||||||
int best = 0;
|
int best = 0;
|
||||||
|
Reference in New Issue
Block a user