Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ec3f5de authored by Maciej Białka's avatar Maciej Białka Committed by Steve Kondik
Browse files

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.
parent 1621c7cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11015,6 +11015,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);
                }