Add FLAG_ACTIVITY_NEW_TASK when starting UI-based tether provisioning.

Bug: 72223006
Bug: 72219677
Test: manual
Change-Id: Iba7a58729903207b2ec75524fc1ef4c404f0b6a3
This commit is contained in:
Jeremy Klein
2018-01-19 11:25:28 -08:00
parent c3a209382c
commit d50fc05186

View File

@@ -495,6 +495,7 @@ public class Tethering extends BaseNetworkObserver {
Intent intent = new Intent(Settings.ACTION_TETHER_PROVISIONING);
intent.putExtra(ConnectivityManager.EXTRA_ADD_TETHER_TYPE, type);
intent.putExtra(ConnectivityManager.EXTRA_PROVISION_CALLBACK, receiver);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
final long ident = Binder.clearCallingIdentity();
try {
mContext.startActivityAsUser(intent, UserHandle.CURRENT);