Clear task bounds data when removing non-bounds persistable task.

Bug: 25584169
Change-Id: Ie68fa12bf182e988077e6410197f7f497f839ba2
This commit is contained in:
Wale Ogunwale
2015-11-09 11:14:10 -08:00
parent 42817202e2
commit b317b22ad9

View File

@@ -4539,6 +4539,11 @@ final class ActivityStack {
if (!moving) {
mStackSupervisor.removeLockedTaskLocked(task);
mWindowManager.removeTask(task.taskId);
if (!StackId.persistTaskBounds(mStackId)) {
// Reset current bounds for task whose bounds shouldn't be persisted so it uses
// default configuration the next time it launches.
task.updateOverrideConfiguration(null);
}
}
final ActivityRecord r = mResumedActivity;