diff options
author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-05-15 11:06:36 -0700 |
---|---|---|
committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-05-15 13:51:43 -0700 |
commit | 08055f66528330ff1a1d1d13c856647d86dd967d (patch) | |
tree | 046498c25e62e26a2b526c1cd5376ec869a3d6a8 /src/com/android/launcher2/AppsCustomizePagedView.java | |
parent | ceca4ff1891baf033cd9d6951ec5a1d31473642f (diff) | |
download | android_packages_apps_Trebuchet-08055f66528330ff1a1d1d13c856647d86dd967d.tar.gz android_packages_apps_Trebuchet-08055f66528330ff1a1d1d13c856647d86dd967d.tar.bz2 android_packages_apps_Trebuchet-08055f66528330ff1a1d1d13c856647d86dd967d.zip |
Adding accessibility scroll support to PagedView.
1. Added support for accessibility scroll action to
PagedView.
2. Exposed AppsCustomizePagedView and Workspace for
acessibility if otherwise specified.
bug:5932640
Change-Id: I812e7c285cbc4d925390b9fae48a18acc68432ce
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizePagedView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index 5c91d35cc..358054535 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -279,6 +279,11 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen mWidgetPreviewIconPaddedDimension = (int) (mAppIconSize * (1 + (2 * sWidgetPreviewIconPaddingPercentage))); mFadeInAdjacentScreens = false; + + // Unless otherwise specified this view is important for accessibility. + if (getImportantForAccessibility() == View.IMPORTANT_FOR_ACCESSIBILITY_AUTO) { + setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_YES); + } } @Override |