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

Commit 15c2da7c authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am 2e7b2521: Merge "[ActivityManager]: Update home process when home activity resumed"

* commit '2e7b2521':
  [ActivityManager]: Update home process when home activity resumed
parents 07c3b195 2e7b2521
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -957,6 +957,14 @@ final class ActivityStack {
        next.idle = false;
        next.results = null;
        next.newIntents = null;

        if (next.isHomeActivity() && next.isNotResolverActivity()) {
            ProcessRecord app = next.task.mActivities.get(0).app;
            if (app != null && app != mService.mHomeProcess) {
                mService.mHomeProcess = app;
            }
        }

        if (next.nowVisible) {
            // We won't get a call to reportActivityVisibleLocked() so dismiss lockscreen now.
            mStackSupervisor.dismissKeyguard();