Merge "Run transition when app dies in freeform" into tm-qpr-dev
This commit is contained in:
@@ -2282,11 +2282,10 @@ class RootWindowContainer extends WindowContainer<DisplayContent>
|
|||||||
resumedOnDisplay[0] |= curResult;
|
resumedOnDisplay[0] |= curResult;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (rootTask.getDisplayArea().isTopRootTask(rootTask)
|
if (topRunningActivity.isState(RESUMED)
|
||||||
&& topRunningActivity.isState(RESUMED)) {
|
&& topRunningActivity == rootTask.getDisplayArea().topRunningActivity()) {
|
||||||
// Kick off any lingering app transitions form the MoveTaskToFront
|
// Kick off any lingering app transitions form the MoveTaskToFront operation,
|
||||||
// operation, but only consider the top task and root-task on that
|
// but only consider the top activity on that display.
|
||||||
// display.
|
|
||||||
rootTask.executeAppTransition(targetOptions);
|
rootTask.executeAppTransition(targetOptions);
|
||||||
} else {
|
} else {
|
||||||
resumedOnDisplay[0] |= topRunningActivity.makeActiveIfNeeded(target);
|
resumedOnDisplay[0] |= topRunningActivity.makeActiveIfNeeded(target);
|
||||||
|
|||||||
@@ -761,7 +761,7 @@ public class RootWindowContainerTests extends WindowTestsBase {
|
|||||||
|
|
||||||
// Assume the task is at the topmost position
|
// Assume the task is at the topmost position
|
||||||
assertFalse(rootTask.isTopRootTaskInDisplayArea());
|
assertFalse(rootTask.isTopRootTaskInDisplayArea());
|
||||||
doReturn(rootTask).when(mRootWindowContainer).getTopDisplayFocusedRootTask();
|
doReturn(taskDisplayArea.getHomeActivity()).when(taskDisplayArea).topRunningActivity();
|
||||||
|
|
||||||
// Use the task as target to resume.
|
// Use the task as target to resume.
|
||||||
mRootWindowContainer.resumeFocusedTasksTopActivities();
|
mRootWindowContainer.resumeFocusedTasksTopActivities();
|
||||||
|
|||||||
Reference in New Issue
Block a user