summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2015-04-29 18:44:20 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-29 18:44:20 +0000
commit9b03205432c01d02afb0af8813c0b9da540795dc (patch)
tree925fffe31d72fc9e63409f9c87c080b0021d924a /src/com/android/launcher3
parent29a627ed3a689a99da4e909e493e73abd245defe (diff)
parentdb184fdc7bd652e45216a453541ab4a266457a3a (diff)
downloadandroid_packages_apps_Trebuchet-9b03205432c01d02afb0af8813c0b9da540795dc.tar.gz
android_packages_apps_Trebuchet-9b03205432c01d02afb0af8813c0b9da540795dc.tar.bz2
android_packages_apps_Trebuchet-9b03205432c01d02afb0af8813c0b9da540795dc.zip
Merge "Enabling folder paged view to scroll itself with accessibility focus traversal" into ub-launcher3-burnaby
Diffstat (limited to 'src/com/android/launcher3')
-rw-r--r--src/com/android/launcher3/FolderPagedView.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/launcher3/FolderPagedView.java b/src/com/android/launcher3/FolderPagedView.java
index c68ef72b3..a07a3dc2c 100644
--- a/src/com/android/launcher3/FolderPagedView.java
+++ b/src/com/android/launcher3/FolderPagedView.java
@@ -95,6 +95,7 @@ public class FolderPagedView extends PagedView {
mIconCache = app.getIconCache();
rtlLayout = getResources().getConfiguration().getLayoutDirection() == LAYOUT_DIRECTION_RTL;
+ setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_YES);
}
public void setFolder(Folder folder) {
@@ -237,6 +238,7 @@ public class FolderPagedView extends PagedView {
CellLayout page = new CellLayout(getContext());
page.setCellDimensions(grid.folderCellWidthPx, grid.folderCellHeightPx);
page.getShortcutsAndWidgets().setMotionEventSplittingEnabled(false);
+ page.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
page.setInvertIfRtl(true);
page.setGridSize(mGridCountX, mGridCountY);