Merge "Notify of new top task changes when a top task is moved to the back" into tm-dev am: a5bd90617e am: 85ba9133fa am: 4b1304071e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18759417 Change-Id: I779e32dffa1f9694a0c0a582dcc9b574f8d035ca Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -438,6 +438,14 @@ final class TaskDisplayArea extends DisplayArea<WindowContainer> {
|
||||
if (!toTop) {
|
||||
if (t.mTaskId == mLastLeafTaskToFrontId) {
|
||||
mLastLeafTaskToFrontId = INVALID_TASK_ID;
|
||||
|
||||
// If the previous front-most task is moved to the back, then notify of the new
|
||||
// front-most task.
|
||||
final ActivityRecord topMost = getTopMostActivity();
|
||||
if (topMost != null) {
|
||||
mAtmService.getTaskChangeNotificationController().notifyTaskMovedToFront(
|
||||
topMost.getTask().getTaskInfo());
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user