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

Commit 102f0e05 authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 8b3bc51c: Merge "Disable keyguard widgets on low memory devices" into klp-dev

* commit '8b3bc51c':
  Disable keyguard widgets on low memory devices
parents 6d0c46fc 8b3bc51c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -428,10 +428,11 @@ public class KeyguardHostView extends KeyguardViewBase {
    }

    private boolean widgetsDisabled() {
        boolean disabledByLowRamDevice = ActivityManager.isLowRamDeviceStatic();
        boolean disabledByDpm =
                (mDisabledFeatures & DevicePolicyManager.KEYGUARD_DISABLE_WIDGETS_ALL) != 0;
        boolean disabledByUser = !mLockPatternUtils.getWidgetsEnabled();
        return disabledByDpm || disabledByUser;
        return disabledByLowRamDevice || disabledByDpm || disabledByUser;
    }

    private boolean cameraDisabledByDpm() {