From 9ee5c2215a9fdbc4395bd3151c1c13f41cdd15aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bia=C5=82ka?= Date: Wed, 24 Mar 2010 10:25:40 +0100 Subject: Set alpha value for newly created dim surface. Newly created dim surface has alpha set to 1 (opaque), but it is assumed in dim animation code that it is 0 (transparent). When new dim surface is created and expected dim value is calculated to 0 then alpha is never set making screen black (dut to default aplha=1) when dim surface is shown. --- services/java/com/android/server/WindowManagerService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'services') diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index d209cfa..2f5b89c 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -10986,6 +10986,7 @@ public class WindowManagerService extends IWindowManager.Stub try { mDimSurface = new Surface(session, 0, -1, 16, 16, PixelFormat.OPAQUE, Surface.FX_SURFACE_DIM); + mDimSurface.setAlpha(0.0f); } catch (Exception e) { Log.e(TAG, "Exception creating Dim surface", e); } -- cgit v1.1