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
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user