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

Commit 2c35eb81 authored by Filip Gruszczynski's avatar Filip Gruszczynski Committed by Android (Google) Code Review
Browse files

Merge "Keep freeform window surface translucent during resize."

parents 40cc51b7 2dfcf5ce
Loading
Loading
Loading
Loading
+5 −4
Original line number Original line Diff line number Diff line
@@ -3705,13 +3705,14 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
        }
        }


        /**
        /**
         * Returns true if the Window is free floating and has a shadow. Note that non overlapping
         * Returns true if the Window is free floating and has a shadow (although at some times
         * windows do not have a shadow since it could not be seen anyways (a small screen / tablet
         * it might not be displaying it, e.g. during a resize). Note that non overlapping windows
         * do not have a shadow since it could not be seen anyways (a small screen / tablet
         * "tiles" the windows side by side but does not overlap them).
         * "tiles" the windows side by side but does not overlap them).
         * @return Returns true when the window has a shadow created by the non client decor.
         * @return Returns true when the window has a shadow created by the non client decor.
         **/
         **/
        private boolean windowHasShadow() {
        private boolean windowHasShadow() {
            return windowHasNonClientDecor() && getElevation() > 0;
            return windowHasNonClientDecor() && nonClientDecorHasShadow(mWindow.mWorkspaceId);
        }
        }


        void setWindow(PhoneWindow phoneWindow) {
        void setWindow(PhoneWindow phoneWindow) {
@@ -5417,7 +5418,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
     * @param workspaceId The Id of the workspace which contains this window.
     * @param workspaceId The Id of the workspace which contains this window.
     * @Return Returns true if the window should show a shadow.
     * @Return Returns true if the window should show a shadow.
     **/
     **/
    private boolean nonClientDecorHasShadow(int workspaceId) {
    private static boolean nonClientDecorHasShadow(int workspaceId) {
        return workspaceId == FREEFORM_WORKSPACE_STACK_ID;
        return workspaceId == FREEFORM_WORKSPACE_STACK_ID;
    }
    }