summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/ConnectivityService.java
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2013-10-17 23:00:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-10-17 23:00:42 +0000
commitb1f0bba1bd516d7136f585c69e6802b65315db0b (patch)
treeb81ac0cd72a526eb0a7419e6721790aa00c45fd7 /services/java/com/android/server/ConnectivityService.java
parentb38ad76a829f9bdbc27e86647de31a5ad19f117a (diff)
parent536b3c2b6cb42fd4140ad5e8131db0d7e6bd01c8 (diff)
Merge "Change how we use provisioning url so post works" into klp-dev
Diffstat (limited to 'services/java/com/android/server/ConnectivityService.java')
-rw-r--r--services/java/com/android/server/ConnectivityService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index b5f0697472de..7c61c4400144 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -4467,8 +4467,9 @@ public class ConnectivityService extends IConnectivityManager.Stub {
mdst.enableMobileProvisioning(url);
} else {
if (DBG) log("handleMobileProvisioningAction: on default network");
- Intent newIntent =
- new Intent(Intent.ACTION_VIEW, Uri.parse(url));
+ Intent newIntent = Intent.makeMainSelectorActivity(Intent.ACTION_MAIN,
+ Intent.CATEGORY_APP_BROWSER);
+ newIntent.setData(Uri.parse(url));
newIntent.setFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT |
Intent.FLAG_ACTIVITY_NEW_TASK);
try {