Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8135d3a8 authored by Zhihai Xu's avatar Zhihai Xu Committed by Android (Google) Code Review
Browse files

Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all...

Merge "need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users" into jb-mr1.1-dev
parents da23e2aa 349969bc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -445,7 +445,8 @@ class AdapterProperties {
                        intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);
                        intent.putExtra(BluetoothAdapter.EXTRA_LOCAL_NAME, mName);
                        intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
                        mService.sendBroadcast(intent, mService.BLUETOOTH_PERM);
                        mService.sendBroadcastAsUser(intent, UserHandle.ALL,
                                 mService.BLUETOOTH_PERM);
                        debugLog("Name is: " + mName);
                        break;
                    case AbstractionLayer.BT_PROPERTY_BDADDR: