summaryrefslogtreecommitdiffstats
path: root/services/core
diff options
context:
space:
mode:
authorPaul Jensen <pauljensen@google.com>2014-08-20 11:01:41 -0400
committerPaul Jensen <pauljensen@google.com>2014-08-21 13:02:31 +0000
commit55298581a0750505bc7da0539fe94255f95326a4 (patch)
treead4ca8ba2e3c302046c5d4aa58a6e3bbbe4cf718 /services/core
parentc7f440dcd86ae88fc1b51e4394d66e4e80c9e53e (diff)
downloadframeworks_base-55298581a0750505bc7da0539fe94255f95326a4.zip
frameworks_base-55298581a0750505bc7da0539fe94255f95326a4.tar.gz
frameworks_base-55298581a0750505bc7da0539fe94255f95326a4.tar.bz2
Send captive portal broadcast as user CURRENT.
Previously this was sent without a qualifying user. bug:17138439 Change-Id: I6345f2375fee168f86c0611e76f869e7377befbe
Diffstat (limited to 'services/core')
-rw-r--r--services/core/java/com/android/server/connectivity/NetworkMonitor.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
index b09298c..ddd0865 100644
--- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java
+++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java
@@ -769,6 +769,7 @@ public class NetworkMonitor extends StateMachine {
latencyBroadcast.putExtra(EXTRA_IS_CAPTIVE_PORTAL, isCaptivePortal);
latencyBroadcast.putExtra(EXTRA_RESPONSE_TIMESTAMP_MS, responseTimestampMs);
}
- mContext.sendBroadcast(latencyBroadcast, PERMISSION_ACCESS_NETWORK_CONDITIONS);
+ mContext.sendBroadcastAsUser(latencyBroadcast, UserHandle.CURRENT,
+ PERMISSION_ACCESS_NETWORK_CONDITIONS);
}
}