From 6a85817dfca8e6dd2333207ca9339c84857800ea Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 25 Oct 2016 16:19:17 -0700 Subject: [PATCH] Don't add focusables when getDescendantFocusability is FOCUS_BLOCK_DESCENDANTS. Bug: 32315286 Change-Id: I6fc6600fc9cbf83f720d9e6e878735076cd52cf1 --- src/com/android/launcher3/PagedView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java index 0abac3670e..ee7f9f805c 100644 --- a/src/com/android/launcher3/PagedView.java +++ b/src/com/android/launcher3/PagedView.java @@ -1068,6 +1068,10 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc @Override public void addFocusables(ArrayList views, int direction, int focusableMode) { + if (getDescendantFocusability() == FOCUS_BLOCK_DESCENDANTS) { + return; + } + // XXX-RTL: This will be fixed in a future CL if (mCurrentPage >= 0 && mCurrentPage < getPageCount()) { getPageAt(mCurrentPage).addFocusables(views, direction, focusableMode);