Merge "Make MD Launcher start a new task when launching app by default"

This commit is contained in:
Charles Chen
2018-11-20 03:19:12 +00:00
committed by Android (Google) Code Review

View File

@@ -189,9 +189,9 @@ public class LauncherActivity extends FragmentActivity implements AppPickedCallb
}
void launch(Intent launchIntent) {
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
if (mNewInstanceCheckBox.isChecked()) {
launchIntent.addFlags(
Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
launchIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK);
}
final ActivityOptions options = ActivityOptions.makeBasic();
if (mSelectedDisplayId != Display.INVALID_DISPLAY) {