Merge "Fix issue with home activity started with standard activity type" into pi-dev

am: 25a1d9d898

Change-Id: If0ebf8ac3100dbef8b97c4c8eba50857f483d74e
This commit is contained in:
Winson Chung
2018-05-22 10:07:47 -07:00
committed by android-build-merger

View File

@@ -1077,6 +1077,11 @@ final class ActivityRecord extends ConfigurationContainer implements AppWindowCo
// System process can launch home activity. // System process can launch home activity.
return true; return true;
} }
// Allow the recents component to launch the home activity.
final RecentTasks recentTasks = mStackSupervisor.mService.getRecentTasks();
if (recentTasks != null && recentTasks.isCallerRecents(uid)) {
return true;
}
// Resolver activity can launch home activity. // Resolver activity can launch home activity.
return sourceRecord != null && sourceRecord.isResolverActivity(); return sourceRecord != null && sourceRecord.isResolverActivity();
} }