diff options
author | Adam Cohen <adamcohen@google.com> | 2011-10-18 15:09:07 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-10-18 15:09:07 -0700 |
commit | e75622a109871a3d94c53ed188d2c5f3f91e5c96 (patch) | |
tree | ca2e7701b5e704d1b17f1695989592ddfc41f538 /src | |
parent | 15d1836b2be7bae2b316b5d6add6f662db60f21f (diff) | |
parent | d3357b186d55816e682b3012cfccd2d7a0680678 (diff) | |
download | android_packages_apps_Trebuchet-e75622a109871a3d94c53ed188d2c5f3f91e5c96.tar.gz android_packages_apps_Trebuchet-e75622a109871a3d94c53ed188d2c5f3f91e5c96.tar.bz2 android_packages_apps_Trebuchet-e75622a109871a3d94c53ed188d2c5f3f91e5c96.zip |
am d3357b18: Fixing all apps accessibility (issue: 5478505)
* commit 'd3357b186d55816e682b3012cfccd2d7a0680678':
Fixing all apps accessibility (issue: 5478505)
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizePagedView.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 7bc4b511b..4718b31c4 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -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); } } |