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

Commit 868d7453 authored by Chris Craik's avatar Chris Craik
Browse files

Force translucency for inset windows

bug:17289912

Change-Id: Ic800f07bce78e0a3538a6afd7ec293d9f8ddad9d
parent 780617fa
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -754,7 +754,11 @@ class WindowStateAnimator {
                final boolean isHwAccelerated = (attrs.flags &
                        WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED) != 0;
                final int format = isHwAccelerated ? PixelFormat.TRANSLUCENT : attrs.format;
                if (!PixelFormat.formatHasAlpha(attrs.format)) {
                if (!PixelFormat.formatHasAlpha(attrs.format)
                        && attrs.surfaceInsets.left == 0
                        && attrs.surfaceInsets.top == 0
                        && attrs.surfaceInsets.right == 0
                        && attrs.surfaceInsets.bottom  == 0) {
                    flags |= SurfaceControl.OPAQUE;
                }