am 49071af7: Merge change 25188 into eclair

Merge commit '49071af7bd19491f21f23a59621227ef48c11146' into eclair-plus-aosp

* commit '49071af7bd19491f21f23a59621227ef48c11146':
  make the window-shade use an opaque surface if possible
This commit is contained in:
Mathias Agopian
2009-09-15 19:02:17 -07:00
committed by Android Git Automerger

View File

@@ -1490,10 +1490,13 @@ public class StatusBarService extends IStatusBar.Stub
/// ---------- Expanded View -------------- /// ---------- Expanded View --------------
pixelFormat = PixelFormat.TRANSLUCENT; pixelFormat = PixelFormat.TRANSLUCENT;
if (false) {
bg = mExpandedView.getBackground(); bg = mExpandedView.getBackground();
if (bg != null) { if (bg != null) {
pixelFormat = bg.getOpacity(); 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;
} }
} }