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

Commit a83f0733 authored by Louis Chang's avatar Louis Chang Committed by Automerger Merge Worker
Browse files

Merge "Update process info while making activity visible" into rvc-qpr-dev am:...

Merge "Update process info while making activity visible" into rvc-qpr-dev am: 5c344f74 am: 4351648b

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

Change-Id: Ifce44d6917a43203acbccc96b02c7a34212c42df
parents fd9881a6 4351648b
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4806,6 +4806,15 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A
                Slog.v(TAG_VISIBILITY, "Start visible activity, " + this);
            }
            setState(STARTED, "makeActiveIfNeeded");

            // Update process info while making an activity from invisible to visible, to make
            // sure the process state is updated to foreground.
            if (app != null) {
                app.updateProcessInfo(false /* updateServiceConnectionActivities */,
                        true /* activityChange */, true /* updateOomAdj */,
                        true /* addPendingTopUid */);
            }

            try {
                mAtmService.getLifecycleManager().scheduleTransaction(app.getThread(), appToken,
                        StartActivityItem.obtain());