OSDN Git Service

need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
authorZhihai Xu <zhihaixu@google.com>
Mon, 12 Nov 2012 23:28:58 +0000 (15:28 -0800)
committerZhihai Xu <zhihaixu@google.com>
Mon, 12 Nov 2012 23:28:58 +0000 (15:28 -0800)
commit31be0d2814d1d3c640160aeafba17feafbaa8bb6
treee73041091eb64c790b193cefe034f684974b8b4a
parent19d8d5447897a7f8f4ee1ac2745639e4c8c1ff8b
need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users

We need to send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED intent to all users
because bluetooth manager service use this intent to change name.
Bluetooth manager service is always running as User 0. but it is always binding
to bluetooth service running at foreground user, So the bluetooth service
need send BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED broadcast intent
to all users to let bluetooth manager service to receive it at any cases.

bug 7476965

Change-Id: I816786d0828d4a7d414077b1ccbe12d2e273fc75
src/com/android/bluetooth/btservice/AdapterProperties.java