Skip to content

Commit cb48836

Browse files
committed
SysUI: Only set mKeyguardBlurEnabled if supported
Change-Id: I5aa65804005cbdc9012f40c764521d9d551f6e75
1 parent 77c53d0 commit cb48836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ public void add(View statusBarView, int barHeight) {
123123

124124
boolean blurSupported = mContext.getResources().getBoolean(
125125
com.android.internal.R.bool.config_ui_blur_enabled);
126-
mKeyguardBlurEnabled = CMSettings.Secure.getInt(mContext.getContentResolver(),
127-
CMSettings.Secure.LOCK_SCREEN_BLUR_ENABLED, blurSupported ? 1 : 0) == 1;
128126
if (blurSupported) {
127+
mKeyguardBlurEnabled = CMSettings.Secure.getInt(mContext.getContentResolver(),
128+
CMSettings.Secure.LOCK_SCREEN_BLUR_ENABLED, blurSupported ? 1 : 0) == 1;
129129
Display display = mWindowManager.getDefaultDisplay();
130130
Point xy = new Point();
131131
display.getRealSize(xy);

0 commit comments

Comments
 (0)