am d071bbd7: am 49071af7: Merge change 25188 into eclair

Merge commit 'd071bbd7fbc64775040950d1e21174f93c8b831e'

* commit 'd071bbd7fbc64775040950d1e21174f93c8b831e':
  make the window-shade use an opaque surface if possible
This commit is contained in:
Mathias Agopian
2009-09-17 09:48:33 -07:00
committed by Android Git Automerger

View File

@@ -1490,10 +1490,13 @@ public class StatusBarService extends IStatusBar.Stub
/// ---------- Expanded View --------------
pixelFormat = PixelFormat.TRANSLUCENT;
if (false) {
bg = mExpandedView.getBackground();
if (bg != null) {
pixelFormat = bg.getOpacity();
bg = mExpandedView.getBackground();
if (bg != null) {
pixelFormat = bg.getOpacity();
if (pixelFormat != PixelFormat.TRANSLUCENT) {
// we want good-looking gradients, so we force a 8-bits per
// pixel format.
pixelFormat = PixelFormat.RGBX_8888;
}
}