Merge "Launch activities in another task if the metadata is set." into sc-v2-dev am: 14a90d0639
am: 3d86e97433
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15959659 Change-Id: I7f4ce2f62faa7e2f9f27c6664b78239b29d31934
This commit is contained in:
@@ -421,6 +421,11 @@ public class DashboardFeatureProviderImpl implements DashboardFeatureProvider {
|
||||
ProfileSelectDialog.updateUserHandlesIfNeeded(mContext, tile);
|
||||
mMetricsFeatureProvider.logStartedIntent(intent, sourceMetricCategory);
|
||||
|
||||
//TODO(b/201970810): Add test cases.
|
||||
if (tile.isNewTask(mContext)) {
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
}
|
||||
|
||||
if (tile.userHandle == null || tile.isPrimaryProfileOnly()) {
|
||||
activity.startActivity(intent);
|
||||
} else if (tile.userHandle.size() == 1) {
|
||||
|
Reference in New Issue
Block a user