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

Commit 8d172e67 authored by Minoru Aoi's avatar Minoru Aoi Committed by Steve Kondik
Browse files

Fix the issue that the top of fullscreen dialog is clipped away

The visibility of status bar comes from the top fullscreen window,
not from the focused window.
That has to be taken into account during the calculation of the
decor rect. You can use mTopIsFullscreen for this purpose.

Change-Id: I6159eb2ee389885cf5ab507157f9451841364d2f
parent 0501cc6e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -3663,8 +3663,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            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) {
                    // Ensure policy decor includes status bar
                        && (fl & WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) == 0
                        && !mTopIsFullscreen) {
                    // Ensure policy decor includes status bar:
                    // The visibility of Status bar and its translucent flags come from
                    // the top fullscreen window, not the focused window.
                    // mTopIsFullscreen holds the test result.
                    dcf.top = mStableTop;
                }
                if ((fl & WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION) == 0