Populating some more accessibility events.

Change-Id: I7813abdd6dcc0979949caec9e31029486be0396d
This commit is contained in:
Winson Chung committed 2011-06-29 20:11:07 -07:00
1 parent e87b924efa
commit 6a0f57dfaf
7 files changed
+90 -3

No files matched your search

@@ -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());
}
}