Merge "Fix A11y on PipMenuView" into sc-v2-dev am: 8784ca840c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16441046 Change-Id: I0c948fd4d0fbbb44db7431b7594e65ed50fd20b3
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user