Loading packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +8 −3 Original line number Diff line number Diff line Loading @@ -581,9 +581,14 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> */ public void setName(String name) { // Prevent getName() to be set to null if setName(null) is called if (name != null && !TextUtils.equals(name, getName())) { if (name == null || TextUtils.equals(name, getName())) { return; } mDevice.setAlias(name); dispatchAttributesChanged(); for (CachedBluetoothDevice cbd : mMemberDevices) { cbd.setName(name); } } Loading Loading
packages/SettingsLib/src/com/android/settingslib/bluetooth/CachedBluetoothDevice.java +8 −3 Original line number Diff line number Diff line Loading @@ -581,9 +581,14 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice> */ public void setName(String name) { // Prevent getName() to be set to null if setName(null) is called if (name != null && !TextUtils.equals(name, getName())) { if (name == null || TextUtils.equals(name, getName())) { return; } mDevice.setAlias(name); dispatchAttributesChanged(); for (CachedBluetoothDevice cbd : mMemberDevices) { cbd.setName(name); } } Loading