From 5598f9c908da3c676f39e40e422fa66ccf66cadc Mon Sep 17 00:00:00 2001 From: xinhe Date: Mon, 17 Nov 2014 11:35:01 -0800 Subject: [PATCH] air plane mode only send to the owner through the quick setting It should send to all the uesers as it behaves in setting Bug:18353278 Change-Id: Ib46a97e30bfba73dd78fab0c8139d6ccb7ad210f --- services/core/java/com/android/server/ConnectivityService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/ConnectivityService.java b/services/core/java/com/android/server/ConnectivityService.java index 5997680b28..82904d08cf 100644 --- a/services/core/java/com/android/server/ConnectivityService.java +++ b/services/core/java/com/android/server/ConnectivityService.java @@ -3247,7 +3247,7 @@ public class ConnectivityService extends IConnectivityManager.Stub Settings.Global.putInt(cr, Settings.Global.AIRPLANE_MODE_ON, enable ? 1 : 0); Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); intent.putExtra("state", enable); - mContext.sendBroadcast(intent); + mContext.sendBroadcastAsUser(intent, UserHandle.ALL); } finally { Binder.restoreCallingIdentity(ident); }