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

Commit cb48836d authored by d34d's avatar d34d
Browse files

SysUI: Only set mKeyguardBlurEnabled if supported

Change-Id: I5aa65804005cbdc9012f40c764521d9d551f6e75
parent 77c53d0d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -123,9 +123,9 @@ public class StatusBarWindowManager implements KeyguardMonitor.Callback {

        boolean blurSupported = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_ui_blur_enabled);
        if (blurSupported) {
            mKeyguardBlurEnabled = CMSettings.Secure.getInt(mContext.getContentResolver(),
                    CMSettings.Secure.LOCK_SCREEN_BLUR_ENABLED, blurSupported ? 1 : 0) == 1;
        if (blurSupported) {
            Display display = mWindowManager.getDefaultDisplay();
            Point xy = new Point();
            display.getRealSize(xy);