Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f62bb3cb authored by Winson Chung's avatar Winson Chung Committed by Automerger Merge Worker
Browse files

Merge "Notify of new top task changes when a top task is moved to the back"...

Merge "Notify of new top task changes when a top task is moved to the back" into tm-dev am: a5bd9061 am: 85ba9133 am: 4b130407 am: cf1af006

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18759417



Change-Id: I4f13993ca7e0a36939907fa37267f48e72f2f8e8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6acb55b3 cf1af006
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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;
        }