Loading core/java/android/server/BluetoothEventLoop.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -266,8 +266,8 @@ class BluetoothEventLoop { } } String name = propValues[0]; String name = propValues[0]; if (name.equals("Name")) { if (name.equals("Name")) { Intent intent = new Intent(BluetoothDevice.ACTION_NAME_CHANGED); Intent intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED); intent.putExtra(BluetoothDevice.EXTRA_NAME, propValues[1]); intent.putExtra(BluetoothAdapter.EXTRA_LOCAL_NAME, propValues[1]); mContext.sendBroadcast(intent, BLUETOOTH_PERM); mContext.sendBroadcast(intent, BLUETOOTH_PERM); mBluetoothService.setProperty(name, propValues[1]); mBluetoothService.setProperty(name, propValues[1]); } else if (name.equals("Pairable") || name.equals("Discoverable")) { } else if (name.equals("Pairable") || name.equals("Discoverable")) { Loading Loading
core/java/android/server/BluetoothEventLoop.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -266,8 +266,8 @@ class BluetoothEventLoop { } } String name = propValues[0]; String name = propValues[0]; if (name.equals("Name")) { if (name.equals("Name")) { Intent intent = new Intent(BluetoothDevice.ACTION_NAME_CHANGED); Intent intent = new Intent(BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED); intent.putExtra(BluetoothDevice.EXTRA_NAME, propValues[1]); intent.putExtra(BluetoothAdapter.EXTRA_LOCAL_NAME, propValues[1]); mContext.sendBroadcast(intent, BLUETOOTH_PERM); mContext.sendBroadcast(intent, BLUETOOTH_PERM); mBluetoothService.setProperty(name, propValues[1]); mBluetoothService.setProperty(name, propValues[1]); } else if (name.equals("Pairable") || name.equals("Discoverable")) { } else if (name.equals("Pairable") || name.equals("Discoverable")) { Loading