Merge change 25188 into eclair

* changes:
  make the window-shade use an opaque surface if possible
This commit is contained in:
Android (Google) Code Review
2009-09-15 21:56:44 -04:00

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;
}
}