OSDN Git Service

Fix adapter name change problem.
authorJaikumar Ganesh <jaikumar@google.com>
Sun, 20 Sep 2009 18:48:16 +0000 (11:48 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Sun, 20 Sep 2009 18:48:16 +0000 (11:48 -0700)
This got introduced as a result of the Bluetooth API changes.

Change-Id: I04ce4a91f0e4f74253407897c2f3973f7b0a0055

core/java/android/server/BluetoothEventLoop.java

index ba0a0d4..84c11e6 100644 (file)
@@ -266,8 +266,8 @@ class BluetoothEventLoop {
         }
         String name = propValues[0];
         if (name.equals("Name")) {
-            Intent intent = new Intent(BluetoothDevice.ACTION_NAME_CHANGED);
-            intent.putExtra(BluetoothDevice.EXTRA_NAME, propValues[1]);
+            Intent intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED);
+            intent.putExtra(BluetoothAdapter.EXTRA_LOCAL_NAME, propValues[1]);
             mContext.sendBroadcast(intent, BLUETOOTH_PERM);
             mBluetoothService.setProperty(name, propValues[1]);
         } else if (name.equals("Pairable") || name.equals("Discoverable")) {