Populating some more accessibility events.

Change-Id: I7813abdd6dcc0979949caec9e31029486be0396d
This commit is contained in:
Winson Chung
2011-06-29 20:10:49 -07:00
parent e87b924efa
commit 6a0f57dfaf
7 changed files with 90 additions and 3 deletions
@@ -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());
}
}