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

Commit 58bca8f1 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

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
parent 8374a2db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;