From 5e2cd32ac38a2a4274fb0016d2cd7d4154862244 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Tue, 7 Apr 2020 15:43:21 -0700 Subject: [PATCH] Temporarily revert changes from ag/10899350 Change-Id: I6608f252fd779b23e84348e52c247a8e2fa9ec7a --- .../quickstep/TouchInteractionService.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java index 32672ba789..a06762fb22 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java @@ -496,7 +496,7 @@ public class TouchInteractionService extends Service implements PluginListener mAM.getRunningTask(true /* filterOnlyVisibleRecents */))); + () -> mAM.getRunningTask(false /* filterOnlyVisibleRecents */))); return gestureState; } @@ -596,10 +596,18 @@ public class TouchInteractionService extends Service implements PluginListener mAM.getRunningTask(true /* filterOnlyVisibleRecents */))); + ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent(); + ComponentName runningComponent = + gestureState.getRunningTask().baseIntent.getComponent(); + forceOverviewInputConsumer = + runningComponent != null && runningComponent.equals(homeComponent); + } if (previousGestureState.getFinishingRecentsAnimationTaskId() > 0) { // If the finish animation was interrupted, then continue using the other activity input