Merge "Fix not callback onTaskMovedToFront when dismissing split" into tm-dev am: 3b16585140 am: 212fc87d03
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18367993 Change-Id: I369b66611fcb18f5ca67a525b1741c2812ad92aa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -5964,6 +5964,9 @@ class Task extends TaskFragment {
|
|||||||
|
|
||||||
if (canBeLaunchedOnDisplay(newParent.getDisplayId())) {
|
if (canBeLaunchedOnDisplay(newParent.getDisplayId())) {
|
||||||
reparent(newParent, onTop ? POSITION_TOP : POSITION_BOTTOM);
|
reparent(newParent, onTop ? POSITION_TOP : POSITION_BOTTOM);
|
||||||
|
if (isLeafTask()) {
|
||||||
|
newParent.onLeafTaskMoved(this, onTop);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Slog.w(TAG, "Task=" + this + " can't reparent to " + newParent);
|
Slog.w(TAG, "Task=" + this + " can't reparent to " + newParent);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user