Merge "Youtube application when moving to PIP animation was very bad"
This commit is contained in:
@@ -1711,7 +1711,7 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
|
||||
: null;
|
||||
}
|
||||
|
||||
private void clearLastParentBeforePip() {
|
||||
void clearLastParentBeforePip() {
|
||||
if (mLastParentBeforePip != null) {
|
||||
mLastParentBeforePip.mChildPipActivity = null;
|
||||
mLastParentBeforePip = null;
|
||||
|
||||
@@ -2569,6 +2569,9 @@ class Task extends TaskFragment {
|
||||
|
||||
EventLogTags.writeWmTaskRemoved(mTaskId, reason);
|
||||
clearPinnedTaskIfNeed();
|
||||
if (mChildPipActivity != null) {
|
||||
mChildPipActivity.clearLastParentBeforePip();
|
||||
}
|
||||
// If applicable let the TaskOrganizer know the Task is vanishing.
|
||||
setTaskOrganizer(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user