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:
@@ -130,7 +130,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
}
|
||||
|
||||
private String createConnectionDisplayText() {
|
||||
String mRemoteName = mDevice != null ? mDevice.getName() : null;
|
||||
String mRemoteName = mDevice != null ? mDevice.getAliasName() : null;
|
||||
|
||||
if (mRemoteName == null) mRemoteName = getString(R.string.unknown);
|
||||
String mMessage1 = getString(R.string.bluetooth_connection_dialog_text,
|
||||
@@ -139,7 +139,7 @@ public class BluetoothPermissionActivity extends AlertActivity implements
|
||||
}
|
||||
|
||||
private String createPbapDisplayText() {
|
||||
String mRemoteName = mDevice != null ? mDevice.getName() : null;
|
||||
String mRemoteName = mDevice != null ? mDevice.getAliasName() : null;
|
||||
|
||||
if (mRemoteName == null) mRemoteName = getString(R.string.unknown);
|
||||
String mMessage1 = getString(R.string.bluetooth_pb_acceptance_dialog_text,
|
||||
|
Reference in New Issue
Block a user