Populating some more accessibility events.
Change-Id: I7813abdd6dcc0979949caec9e31029486be0396d
This commit is contained in:
@@ -1192,4 +1192,19 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
||||
final int count = getChildCount();
|
||||
return Math.min(page + 2, count - 1);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getCurrentPageDescription() {
|
||||
int page = (mNextPage != INVALID_PAGE) ? mNextPage : mCurrentPage;
|
||||
int stringId = R.string.default_scroll_format;
|
||||
switch (mContentType) {
|
||||
case Applications:
|
||||
stringId = R.string.apps_customize_apps_scroll_format;
|
||||
break;
|
||||
case Widgets:
|
||||
stringId = R.string.apps_customize_widgets_scroll_format;
|
||||
break;
|
||||
}
|
||||
return String.format(mContext.getString(stringId), page + 1, getChildCount());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user