summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChiachang Wang <chiachangwang@google.com>2021-03-19 07:54:24 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-19 07:54:24 +0000
commit8ce1fa23138829a6fd73d98475cce36cdca8530f (patch)
treed50db47b6bc7a29188d57fe223345528dcec64fe
parent3f4d2a6f67576ffb243ca328dcc471bd0a496f31 (diff)
parent4a013645cb4a6ba1a0df037aba7cf68381b34cb0 (diff)
Merge "Send a Network instead of network id for wifi no internet dialog"
-rw-r--r--services/core/java/com/android/server/ConnectivityService.java2
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".