Merge "Youtube application when moving to PIP animation was very bad" am: b3c0709168 am: 692dca6088 am: a5476186bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2383973 Change-Id: I9e0c7f2520c09fd7dec33df444016417d9fbfcef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1734,7 +1734,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
|||||||
: null;
|
: null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clearLastParentBeforePip() {
|
void clearLastParentBeforePip() {
|
||||||
if (mLastParentBeforePip != null) {
|
if (mLastParentBeforePip != null) {
|
||||||
mLastParentBeforePip.mChildPipActivity = null;
|
mLastParentBeforePip.mChildPipActivity = null;
|
||||||
mLastParentBeforePip = null;
|
mLastParentBeforePip = null;
|
||||||
|
|||||||
@@ -2584,6 +2584,9 @@ class Task extends TaskFragment {
|
|||||||
|
|
||||||
EventLogTags.writeWmTaskRemoved(mTaskId, getRootTaskId(), getDisplayId(), reason);
|
EventLogTags.writeWmTaskRemoved(mTaskId, getRootTaskId(), getDisplayId(), reason);
|
||||||
clearPinnedTaskIfNeed();
|
clearPinnedTaskIfNeed();
|
||||||
|
if (mChildPipActivity != null) {
|
||||||
|
mChildPipActivity.clearLastParentBeforePip();
|
||||||
|
}
|
||||||
// If applicable let the TaskOrganizer know the Task is vanishing.
|
// If applicable let the TaskOrganizer know the Task is vanishing.
|
||||||
setTaskOrganizer(null);
|
setTaskOrganizer(null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user