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

Commit 38a57d5b authored by Hongwei Wang's avatar Hongwei Wang Committed by Automerger Merge Worker
Browse files

Merge "Fix A11y on PipMenuView" into sc-v2-dev am: 8784ca84

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16441046

Change-Id: I0c948fd4d0fbbb44db7431b7594e65ed50fd20b3
parents db5e0194 8784ca84
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -191,6 +191,7 @@ public class PhonePipMenuController implements PipMenuController {
        mSystemWindows.addView(mPipMenuView,
                getPipMenuLayoutParams(MENU_WINDOW_TITLE, 0 /* width */, 0 /* height */),
                0, SHELL_ROOT_LAYER_PIP);
        setShellRootAccessibilityWindow();
    }

    private void detachPipMenuView() {
@@ -546,6 +547,10 @@ public class PhonePipMenuController implements PipMenuController {
            mListeners.forEach(l -> l.onPipMenuStateChangeFinish(menuState));
        }
        mMenuState = menuState;
        setShellRootAccessibilityWindow();
    }

    private void setShellRootAccessibilityWindow() {
        switch (mMenuState) {
            case MENU_STATE_NONE:
                mSystemWindows.setShellRootAccessibilityWindow(0, SHELL_ROOT_LAYER_PIP, null);