Save changed name from CachedBluetoothDevice to native storage
The change preserves the friendly name change over power cycle. bug 5081605 Change-Id: I2b2cce5a789c72d52439511c42df369639eb0b4b
This commit is contained in:
@@ -82,7 +82,7 @@ public final class BluetoothPairingRequest extends BroadcastReceiver {
|
||||
|
||||
String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME);
|
||||
if (TextUtils.isEmpty(name)) {
|
||||
name = device != null ? device.getName() :
|
||||
name = device != null ? device.getAliasName() :
|
||||
context.getString(android.R.string.unknownName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user