diff options
| author | Dianne Hackborn <hackbod@google.com> | 2012-08-30 14:56:11 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-30 14:56:11 -0700 |
| commit | 73365695e4d169126c6932df8e8e932aefe6aaca (patch) | |
| tree | 28bf999c15a738287a7d8aac3e3cb7951848107c /services/java/com/android/server/net/NetworkStatsService.java | |
| parent | d02239d1c05054e4a1e06009410a933a45c24d3e (diff) | |
| parent | 5ac72a29593ab9a20337a2225df52bdf4754be02 (diff) | |
| download | frameworks_base-73365695e4d169126c6932df8e8e932aefe6aaca.zip frameworks_base-73365695e4d169126c6932df8e8e932aefe6aaca.tar.gz frameworks_base-73365695e4d169126c6932df8e8e932aefe6aaca.tar.bz2 | |
Merge "Improve multi-user broadcasts." into jb-mr1-dev
Diffstat (limited to 'services/java/com/android/server/net/NetworkStatsService.java')
| -rw-r--r-- | services/java/com/android/server/net/NetworkStatsService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/net/NetworkStatsService.java b/services/java/com/android/server/net/NetworkStatsService.java index ffe2a3d..f2d2fb7 100644 --- a/services/java/com/android/server/net/NetworkStatsService.java +++ b/services/java/com/android/server/net/NetworkStatsService.java @@ -99,6 +99,7 @@ import android.os.Message; import android.os.PowerManager; import android.os.RemoteException; import android.os.SystemClock; +import android.os.UserHandle; import android.provider.Settings; import android.provider.Settings.Secure; import android.telephony.PhoneStateListener; @@ -989,7 +990,8 @@ public class NetworkStatsService extends INetworkStatsService.Stub { // finally, dispatch updated event to any listeners final Intent updatedIntent = new Intent(ACTION_NETWORK_STATS_UPDATED); updatedIntent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY); - mContext.sendBroadcast(updatedIntent, READ_NETWORK_USAGE_HISTORY); + mContext.sendBroadcastAsUser(updatedIntent, UserHandle.ALL, + READ_NETWORK_USAGE_HISTORY); } /** |
