From 58bca8f15fbdc9e621b3c259a50ecf41c00e64c3 Mon Sep 17 00:00:00 2001 From: Amith Yamasani Date: Fri, 22 Jul 2011 12:16:16 -0700 Subject: 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 --- src/com/android/settings/SecuritySettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index 057e5de..9a83311 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -237,7 +237,7 @@ public class SecuritySettings extends SettingsPreferenceFragment private void updateLockAfterPreferenceSummary() { // Update summary message with current value 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[] values = mLockAfter.getEntryValues(); int best = 0; -- cgit v1.1