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

Commit 1630ef4f authored by Chris Wren's avatar Chris Wren
Browse files

remove lockscreen widget checkbox when there's no lockscreen.

Bug: 11190345
Change-Id: I1b48e7a6a70226b103d8a6a27bd3374ff8349b3f
parent b9687f3b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -245,7 +245,8 @@ public class SecuritySettings extends RestrictedSettingsFragment
        // Enable or disable keyguard widget checkbox based on DPM state
        mEnableKeyguardWidgets = (CheckBoxPreference) root.findPreference(KEY_ENABLE_WIDGETS);
        if (mEnableKeyguardWidgets != null) {
            if (ActivityManager.isLowRamDeviceStatic()) {
            if (ActivityManager.isLowRamDeviceStatic()
                    || mLockPatternUtils.isLockScreenDisabled()) {
                // Widgets take a lot of RAM, so disable them on low-memory devices
                PreferenceGroup securityCategory
                        = (PreferenceGroup) root.findPreference(KEY_SECURITY_CATEGORY);