diff options
author | d34d <clark@cyngn.com> | 2016-05-23 01:15:21 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2016-05-23 01:30:23 -0700 |
commit | cb48836d7c007cadc848ffe5f37c79068fbe62ea (patch) | |
tree | 7e3d48b6fbfd024382515e103906660a842600d3 /packages | |
parent | 77c53d0d79eb46b135bdfcb6acad1166d7dd9b73 (diff) | |
download | frameworks_base-cb48836d7c007cadc848ffe5f37c79068fbe62ea.zip frameworks_base-cb48836d7c007cadc848ffe5f37c79068fbe62ea.tar.gz frameworks_base-cb48836d7c007cadc848ffe5f37c79068fbe62ea.tar.bz2 |
SysUI: Only set mKeyguardBlurEnabled if supported
Change-Id: I5aa65804005cbdc9012f40c764521d9d551f6e75
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java index b96411d..4cb24bd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowManager.java @@ -123,9 +123,9 @@ public class StatusBarWindowManager implements KeyguardMonitor.Callback { boolean blurSupported = mContext.getResources().getBoolean( com.android.internal.R.bool.config_ui_blur_enabled); - mKeyguardBlurEnabled = CMSettings.Secure.getInt(mContext.getContentResolver(), - CMSettings.Secure.LOCK_SCREEN_BLUR_ENABLED, blurSupported ? 1 : 0) == 1; if (blurSupported) { + mKeyguardBlurEnabled = CMSettings.Secure.getInt(mContext.getContentResolver(), + CMSettings.Secure.LOCK_SCREEN_BLUR_ENABLED, blurSupported ? 1 : 0) == 1; Display display = mWindowManager.getDefaultDisplay(); Point xy = new Point(); display.getRealSize(xy); |