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

Commit 12b50095 authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Force translucency for inset windows" into lmp-dev

parents 1a3febe7 868d7453
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;
                }