Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a6555e7 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 6342437 from f1ab2b2a to rvc-release

Change-Id: Ic0f104e8cfda82fa88a11a4e155814133ca69922
parents 6f1b3247 f1ab2b2a
Loading
Loading
Loading
Loading
+5 −13
Original line number Diff line number Diff line
@@ -442,7 +442,7 @@ public class TouchInteractionService extends Service implements PluginListener<O
            GestureState newGestureState = new GestureState(mOverviewComponentObserver,
                    ActiveGestureLog.INSTANCE.generateAndSetLogId());
            newGestureState.updateRunningTask(TraceHelper.whitelistIpcs("getRunningTask.0",
                    () -> mAM.getRunningTask(0)));
                    () -> mAM.getRunningTask(true /* filterOnlyVisibleRecents */)));

            if (mDeviceState.isInSwipeUpTouchRegion(event)) {
                mConsumer.onConsumerAboutToBeSwitched();
@@ -577,18 +577,10 @@ public class TouchInteractionService extends Service implements PluginListener<O
            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 */)));
        RunningTaskInfo runningTask = gestureState.getRunningTask();
        ComponentName homeComponent = mOverviewComponentObserver.getHomeIntent().getComponent();
            ComponentName runningComponent =
                    gestureState.getRunningTask().baseIntent.getComponent();
            forceOverviewInputConsumer =
                    runningComponent != null && runningComponent.equals(homeComponent);
        }
        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