am a8e6d6fd: Merge "air plane mode only send to the owner through the quick setting" into lmp-mr1-dev

* commit 'a8e6d6fd993c449b442be8c19f6c2688b75c018d':
  air plane mode only send to the owner through the quick setting
This commit is contained in:
xinhe
2014-11-17 22:59:20 +00:00
committed by Android Git Automerger

View File

@@ -3246,7 +3246,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
Settings.Global.putInt(cr, Settings.Global.AIRPLANE_MODE_ON, enable ? 1 : 0); Settings.Global.putInt(cr, Settings.Global.AIRPLANE_MODE_ON, enable ? 1 : 0);
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED); Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.putExtra("state", enable); intent.putExtra("state", enable);
mContext.sendBroadcast(intent); mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
} finally { } finally {
Binder.restoreCallingIdentity(ident); Binder.restoreCallingIdentity(ident);
} }