Merge "Fix A11y on PipMenuView" into sc-v2-dev
This commit is contained in:
@@ -191,6 +191,7 @@ public class PhonePipMenuController implements PipMenuController {
|
|||||||
mSystemWindows.addView(mPipMenuView,
|
mSystemWindows.addView(mPipMenuView,
|
||||||
getPipMenuLayoutParams(MENU_WINDOW_TITLE, 0 /* width */, 0 /* height */),
|
getPipMenuLayoutParams(MENU_WINDOW_TITLE, 0 /* width */, 0 /* height */),
|
||||||
0, SHELL_ROOT_LAYER_PIP);
|
0, SHELL_ROOT_LAYER_PIP);
|
||||||
|
setShellRootAccessibilityWindow();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void detachPipMenuView() {
|
private void detachPipMenuView() {
|
||||||
@@ -546,6 +547,10 @@ public class PhonePipMenuController implements PipMenuController {
|
|||||||
mListeners.forEach(l -> l.onPipMenuStateChangeFinish(menuState));
|
mListeners.forEach(l -> l.onPipMenuStateChangeFinish(menuState));
|
||||||
}
|
}
|
||||||
mMenuState = menuState;
|
mMenuState = menuState;
|
||||||
|
setShellRootAccessibilityWindow();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void setShellRootAccessibilityWindow() {
|
||||||
switch (mMenuState) {
|
switch (mMenuState) {
|
||||||
case MENU_STATE_NONE:
|
case MENU_STATE_NONE:
|
||||||
mSystemWindows.setShellRootAccessibilityWindow(0, SHELL_ROOT_LAYER_PIP, null);
|
mSystemWindows.setShellRootAccessibilityWindow(0, SHELL_ROOT_LAYER_PIP, null);
|
||||||
|
|||||||
Reference in New Issue
Block a user