Update launcher call to fetch recent tasks am: 5a69742d20
Change-Id: I207b1814991e87e38c4399bf2fea0a2f059f4b06
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 0c4cd43..32672ba 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 @@
GestureState gestureState = new GestureState(mOverviewComponentObserver,
ActiveGestureLog.INSTANCE.generateAndSetLogId());
gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.0",
- () -> mAM.getRunningTask(0)));
+ () -> mAM.getRunningTask(true /* filterOnlyVisibleRecents */)));
return gestureState;
}
@@ -596,18 +596,10 @@
return createDeviceLockedInputConsumer(gestureState);
}
- boolean forceOverviewInputConsumer = false;
- if (AssistantUtilities.isExcludedAssistant(gestureState.getRunningTask())) {
- // In the case where we are in the excluded assistant state, ignore it and treat the
- // running activity as the task behind the assistant
- gestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.assistant",
- () -> mAM.getRunningTask(ACTIVITY_TYPE_ASSISTANT /* ignoreActivityType */)));
- ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent();
- ComponentName runningComponent =
- gestureState.getRunningTask().baseIntent.getComponent();
- forceOverviewInputConsumer =
- runningComponent != null && runningComponent.equals(homeComponent);
- }
+ RunningTaskInfo runningTask = gestureState.getRunningTask();
+ ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent();
+ boolean forceOverviewInputConsumer = runningTask != null
+ && runningTask.baseIntent.getComponent().equals(homeComponent);
if (previousGestureState.getFinishingRecentsAnimationTaskId() > 0) {
// If the finish animation was interrupted, then continue using the other activity input