Make Talkback anounce which page is the icon being move on.

Adding a third argument for the talkback string.

Fix: 230593493
Test: Move an item using Talkback and it should mention the row,
column and page where you can drop the item.

Change-Id: Id3d4435e9ef3348278643e6e2a1cd1e8bf5157b7
This commit is contained in:
Sebastian Franco
2022-06-22 17:17:38 -07:00
parent 5ecc826e5a
commit 930531f669
3 changed files with 10 additions and 5 deletions
+5 -1
View File
@@ -3418,7 +3418,11 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
return getPageDescription(page);
}
private String getPageDescription(int page) {
/**
* @param page page index.
* @return Description of the page at the given page index.
*/
public String getPageDescription(int page) {
int nScreens = getChildCount();
int extraScreenId = mScreenOrder.indexOf(EXTRA_EMPTY_SCREEN_ID);
if (extraScreenId >= 0 && nScreens > 1) {