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

Commit f543e6cf authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Check if the recents animation is still running and whether the app...

Merge "Check if the recents animation is still running and whether the app being restarted is the live tile app in mLiveTileRestartListener" into sc-dev
parents 4a202c5a fd1d7523
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1494,7 +1494,9 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<?>, Q extends
        @Override
        public void onActivityRestartAttempt(ActivityManager.RunningTaskInfo task,
                boolean homeTaskVisible, boolean clearedTask, boolean wasVisible) {
            if (mRecentsAnimationTargets.hasTask(task.taskId)) {
            if (mRecentsView.getRunningTaskIndex() != -1
                    && mRecentsView.getRunningTaskId() == task.taskId
                    && mRecentsAnimationTargets.hasTask(task.taskId)) {
                launchOtherTaskInLiveTileMode(task.taskId, mRecentsAnimationTargets.apps);
            }
            ActivityManagerWrapper.getInstance().unregisterTaskStackListener(
+4 −0
Original line number Diff line number Diff line
@@ -1106,6 +1106,10 @@ public abstract class RecentsView<T extends StatefulActivity> extends PagedView
        }
    }

    public int getRunningTaskId() {
        return mRunningTaskId;
    }

    public @Nullable TaskView getRunningTaskView() {
        return getTaskView(mRunningTaskId);
    }