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

Commit fc1567fb authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set focused app when top activity is resumed"

parents 380a5d3f 9060da6c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -945,6 +945,10 @@ class TaskFragment extends WindowContainer<WindowContainer> {
            // we still want to check if the visibility of other windows have changed (e.g. bringing
            // a fullscreen window forward to cover another freeform activity.)
            if (taskDisplayArea.inMultiWindowMode()) {
                if (taskDisplayArea.mDisplayContent != null
                        && taskDisplayArea.mDisplayContent.mFocusedApp != next) {
                    taskDisplayArea.mDisplayContent.setFocusedApp(next);
                }
                taskDisplayArea.ensureActivitiesVisible(null /* starting */, 0 /* configChanges */,
                        false /* preserveWindows */, true /* notifyClients */);
            }