diff options
author | Dianne Hackborn <hackbod@google.com> | 2009-10-07 16:13:39 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2009-10-07 17:37:16 -0700 |
commit | 568cae571a3d74d1992176a21722e07b44e9a3c4 (patch) | |
tree | 16d87b64c6900dd0b824c0090c96ea6f52989d6a /services/java/com/android/server/status | |
parent | a2de8e31c2693d009db1f9386406758874dd1d40 (diff) | |
download | frameworks_base-568cae571a3d74d1992176a21722e07b44e9a3c4.zip frameworks_base-568cae571a3d74d1992176a21722e07b44e9a3c4.tar.gz frameworks_base-568cae571a3d74d1992176a21722e07b44e9a3c4.tar.bz2 |
Fix issue #2171460: Turn off background blurring of power dialog
Change-Id: I521629e0ccd0116acf149eeb7476c8474fc7c74a
Diffstat (limited to 'services/java/com/android/server/status')
-rw-r--r-- | services/java/com/android/server/status/StatusBarPolicy.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/services/java/com/android/server/status/StatusBarPolicy.java b/services/java/com/android/server/status/StatusBarPolicy.java index 801a938..3d1fb83 100644 --- a/services/java/com/android/server/status/StatusBarPolicy.java +++ b/services/java/com/android/server/status/StatusBarPolicy.java @@ -624,15 +624,20 @@ public class StatusBarPolicy { pixelFormat = bg.getOpacity(); } + int flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE + | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE + | WindowManager.LayoutParams.FLAG_DIM_BEHIND; + + if (!mContext.getResources().getBoolean( + com.android.internal.R.bool.config_sf_slowBlur)) { + flags |= WindowManager.LayoutParams.FLAG_BLUR_BEHIND; + } + WindowManager.LayoutParams lp = new WindowManager.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.TYPE_TOAST, - WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE - | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE - | WindowManager.LayoutParams.FLAG_BLUR_BEHIND - | WindowManager.LayoutParams.FLAG_DIM_BEHIND, - pixelFormat); + flags, pixelFormat); // Get the dim amount from the theme TypedArray a = mContext.obtainStyledAttributes( |