Fix no announcment when the PIP menu shows on the screen
In the legacy implemenation, the PIP menu is a activity, so the property of windowInfo, inPictureInPicture is true. Screen-reader will read the the tile for the new pitcure-in-picture window. We set this property of the PIP menu to false because it is not a activity anymore, however, it ends up that there is no announcment anymore. To fix it with the simplest way, we set this property to true. Bug: 236216130 Test: manual test, enable Talback and show the pip menu to see if there is any announcement Change-Id: I73e36242db074c747769b38b328a9cdc742fbd90
This commit is contained in:
@@ -853,6 +853,8 @@ public final class AccessibilityWindowsPopulator extends WindowInfosListener {
|
||||
windowInfo.title = "Splitscreen Divider";
|
||||
} else if (window.mIsPIPMenu) {
|
||||
windowInfo.title = "Picture-in-Picture menu";
|
||||
// Set it to true to be consistent with the legacy implementation.
|
||||
windowInfo.inPictureInPicture = true;
|
||||
}
|
||||
return windowInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user