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

Commit 62544134 authored by John Spurlock's avatar John Spurlock Committed by Android Git Automerger
Browse files

am c0ee1ff4: am e60b7bf7: Merge "Don\'t crop top-most windows at rest." into klp-dev

* commit 'c0ee1ff4':
  Don't crop top-most windows at rest.
parents bd91ecfa c0ee1ff4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -3003,9 +3003,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            dcf.bottom = mSystemBottom;
            final boolean inheritTranslucentDecor = (attrs.privateFlags
                    & WindowManager.LayoutParams.PRIVATE_FLAG_INHERIT_TRANSLUCENT_DECOR) != 0;
            if (attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW
                    && attrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW
                    && !inheritTranslucentDecor) {
            final boolean isAppWindow =
                    attrs.type >= WindowManager.LayoutParams.FIRST_APPLICATION_WINDOW &&
                    attrs.type <= WindowManager.LayoutParams.LAST_APPLICATION_WINDOW;
            final boolean topAtRest =
                    win == mTopFullscreenOpaqueWindowState && !win.isAnimatingLw();
            if (isAppWindow && !inheritTranslucentDecor && !topAtRest) {
                if ((sysUiFl & View.SYSTEM_UI_FLAG_FULLSCREEN) == 0
                        && (fl & WindowManager.LayoutParams.FLAG_FULLSCREEN) == 0
                        && (fl & WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) == 0) {