From 00e0b91917fd17fe8d96c812a83bbf6d2c3d460d Mon Sep 17 00:00:00 2001 From: Vadim Tryshev Date: Fri, 18 May 2018 17:39:12 -0700 Subject: [PATCH] Never setting accessibility focus manually This will result in the focus going to the second from the right task upon opening Recents. This will be mitigated by implementing in near future announcements like Task 6 out of 7. Besides this, due to (presumably) problems external to Launcher, the focus may stay on Home button or completely disappear upon opening Recents. Bug: 72222505 Change-Id: I0e5ac62bfa0e1c0db2d17a6014e61f82cfccf252 Testing: Manual --- quickstep/src/com/android/quickstep/views/RecentsView.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java index f038eff8a0..578f36c23a 100644 --- a/quickstep/src/com/android/quickstep/views/RecentsView.java +++ b/quickstep/src/com/android/quickstep/views/RecentsView.java @@ -53,7 +53,6 @@ import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewDebug; -import android.view.accessibility.AccessibilityEvent; import com.android.launcher3.BaseActivity; import com.android.launcher3.DeviceProfile; @@ -1264,10 +1263,6 @@ public abstract class RecentsView extends PagedView impl @Override protected void notifyPageSwitchListener(int prevPage) { super.notifyPageSwitchListener(prevPage); - View currChild = getChildAt(mCurrentPage); - if (currChild != null) { - currChild.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_FOCUSED); - } loadVisibleTaskData(); }