am d3357b18: Fixing all apps accessibility (issue: 5478505)
* commit 'd3357b186d55816e682b3012cfccd2d7a0680678': Fixing all apps accessibility (issue: 5478505)
This commit is contained in:
@@ -1419,14 +1419,17 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
protected String getCurrentPageDescription() {
|
||||
int page = (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
|
||||
int stringId = R.string.default_scroll_format;
|
||||
|
||||
int count = 0;
|
||||
|
||||
if (page < mNumAppsPages) {
|
||||
stringId = R.string.apps_customize_apps_scroll_format;
|
||||
count = mNumAppsPages;
|
||||
} else {
|
||||
page -= mNumAppsPages;
|
||||
stringId = R.string.apps_customize_widgets_scroll_format;
|
||||
count = mNumWidgetPages;
|
||||
}
|
||||
|
||||
return String.format(mContext.getString(stringId), page + 1, getChildCount());
|
||||
return String.format(mContext.getString(stringId), page + 1, count);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user