Merge "Re-route to default display if the home activity doesn't support multi-display" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5600015ef0
@@ -439,6 +439,13 @@ class TaskLaunchParamsModifier implements LaunchParamsModifier {
|
||||
taskDisplayArea = mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea();
|
||||
}
|
||||
|
||||
// Re-route to default display if the home activity doesn't support multi-display
|
||||
if (taskDisplayArea != null && activityRecord.isActivityTypeHome()
|
||||
&& !mSupervisor.mRootWindowContainer.canStartHomeOnDisplayArea(activityRecord.info,
|
||||
taskDisplayArea, false /* allowInstrumenting */)) {
|
||||
taskDisplayArea = mSupervisor.mRootWindowContainer.getDefaultTaskDisplayArea();
|
||||
}
|
||||
|
||||
return (taskDisplayArea != null)
|
||||
? taskDisplayArea
|
||||
: getFallbackDisplayAreaForActivity(activityRecord, request);
|
||||
|
||||
Reference in New Issue
Block a user