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

This commit is contained in:
Craig Mautner
2014-07-16 17:17:46 +00:00
committed by Gerrit Code Review

View File

@@ -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();