Merge "Do remove starting windows for activities in an invisible stack" into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
1ae277831d
@@ -2051,6 +2051,14 @@ final class ActivityStack {
|
||||
// We don't want to clear starting window for activities that aren't behind fullscreen
|
||||
// activities as we need to display their starting window until they are done initializing.
|
||||
boolean behindFullscreenActivity = false;
|
||||
|
||||
if (getStackVisibilityLocked(null) == STACK_INVISIBLE) {
|
||||
// The stack is not visible, so no activity in it should be displaying a starting
|
||||
// window. Mark all activities below top and behind fullscreen.
|
||||
aboveTop = false;
|
||||
behindFullscreenActivity = true;
|
||||
}
|
||||
|
||||
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
||||
final ArrayList<ActivityRecord> activities = mTaskHistory.get(taskNdx).mActivities;
|
||||
for (int activityNdx = activities.size() - 1; activityNdx >= 0; --activityNdx) {
|
||||
|
||||
Reference in New Issue
Block a user