| commit | f733c2aaa652f3ead60c8b2bc982dc9bdbc7df8e | [log] [tgz] |
|---|---|---|
| author | Daniel Sandler <dsandler@android.com> | Sun Sep 25 15:03:40 2011 -0400 |
| committer | Daniel Sandler <dsandler@android.com> | Sun Sep 25 15:03:40 2011 -0400 |
| tree | 0356b0e9e3d1c2ba1339fb04d3bf0a30a6423fb6 | |
| parent | a6ccaa736d18d1ee375162e9df9d2aad8db869e5 [diff] |
Make the status and navigation bars OPAQUE. Bug: 5369240 Change-Id: I1c01baa732f441bf7d2c469eb7d3d82d26da07b1
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java index 37c77f6..5959537 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/StatusBar.java
@@ -118,7 +118,7 @@ WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_TOUCHABLE_WHEN_WAKING | WindowManager.LayoutParams.FLAG_SPLIT_TOUCH, - PixelFormat.RGBX_8888); + PixelFormat.OPAQUE); // the status bar should be in an overlay if possible final Display defaultDisplay
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index da6bcd2..c4e87d8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
@@ -316,12 +316,7 @@ } // figure out which pixel-format to use for the status bar. - mPixelFormat = PixelFormat.TRANSLUCENT; - Drawable bg = sb.getBackground(); - if (bg != null) { - mPixelFormat = bg.getOpacity(); - } - + mPixelFormat = PixelFormat.OPAQUE; mStatusIcons = (LinearLayout)sb.findViewById(R.id.statusIcons); mNotificationIcons = (IconMerger)sb.findViewById(R.id.notificationIcons); mIcons = (LinearLayout)sb.findViewById(R.id.icons);