diff options
author | Chiachang Wang <chiachangwang@google.com> | 2021-03-19 07:54:24 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2021-03-19 07:54:24 +0000 |
commit | 8ce1fa23138829a6fd73d98475cce36cdca8530f (patch) | |
tree | d50db47b6bc7a29188d57fe223345528dcec64fe /services/core | |
parent | 3f4d2a6f67576ffb243ca328dcc471bd0a496f31 (diff) | |
parent | 4a013645cb4a6ba1a0df037aba7cf68381b34cb0 (diff) |
Merge "Send a Network instead of network id for wifi no internet dialog"
Diffstat (limited to 'services/core')
-rw-r--r-- | services/core/java/com/android/server/ConnectivityService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 346179e9bbf6..82ed4e6ec3fe 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -4351,7 +4351,7 @@ public class ConnectivityService extends IConnectivityManager.Stub Intent intent = new Intent(action); if (type != NotificationType.PRIVATE_DNS_BROKEN) { - intent.setData(Uri.fromParts("netId", Integer.toString(nai.network.getNetId()), null)); + intent.putExtra(ConnectivityManager.EXTRA_NETWORK, nai.network); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Some OEMs have their own Settings package. Thus, need to get the current using // Settings package name instead of just use default name "com.android.settings". |