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 98c550293a..86ba855784 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java @@ -657,10 +657,12 @@ public class TouchInteractionService extends Service implements // In the case where we are in the excluded assistant state, ignore it and treat the // running activity as the task behind the assistant runningTaskInfo = mAM.getRunningTask(ACTIVITY_TYPE_ASSISTANT); - final ComponentName homeComponent = + if (!ActivityManagerWrapper.isHomeTask(runningTaskInfo)) { + final ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent(); - forceOverviewInputConsumer = + forceOverviewInputConsumer = runningTaskInfo.baseIntent.getComponent().equals(homeComponent); + } } if (runningTaskInfo == null && !sSwipeSharedState.goingToLauncher