From db184fdc7bd652e45216a453541ab4a266457a3a Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Tue, 28 Apr 2015 20:43:07 -0700 Subject: [PATCH] Enabling folder paged view to scroll itself with accessibility focus traversal Change-Id: I9095d5bf2de8e2053e0aaa27fb385b158e493964 --- src/com/android/launcher3/FolderPagedView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher3/FolderPagedView.java b/src/com/android/launcher3/FolderPagedView.java index c68ef72b36..a07a3dc2cd 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);