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

Commit 8d20824d authored by Maryam Dehaini's avatar Maryam Dehaini
Browse files

Do not show window decor for PIP

DesktopModeWindowDecorViewModel#shouldShowWindowDecor should show false
when windowing mode equals WINDOWING_MODE_PINNED

Test: swipe up from fullscreen youtube video to enter PIP. There should
not be black borders
Bug: 287350098

Change-Id: Id1c75e8a60c2e2923d5d5132c9ed263635a3a84d
parent 53a00167
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ import static android.app.WindowConfiguration.ACTIVITY_TYPE_STANDARD;
import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM;
import static android.app.WindowConfiguration.WINDOWING_MODE_FULLSCREEN;
import static android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW;
import static android.app.WindowConfiguration.WINDOWING_MODE_PINNED;

import static com.android.wm.shell.common.split.SplitScreenConstants.SPLIT_POSITION_BOTTOM_OR_RIGHT;
import static com.android.wm.shell.common.split.SplitScreenConstants.SPLIT_POSITION_TOP_OR_LEFT;
@@ -787,6 +788,7 @@ public class DesktopModeWindowDecorViewModel implements WindowDecorViewModel {
            return false;
        }
        return DesktopModeStatus.isProto2Enabled()
                && taskInfo.getWindowingMode() != WINDOWING_MODE_PINNED
                && taskInfo.getActivityType() == ACTIVITY_TYPE_STANDARD
                && mDisplayController.getDisplayContext(taskInfo.displayId)
                .getResources().getConfiguration().smallestScreenWidthDp >= 600;