Refactor usages of getAliasName to use getAlias in Settings
Bug: 142352567 Test: Manual Change-Id: I40af1b1e0453900fd888317ae46b20ef359db473
This commit is contained in:
@@ -141,7 +141,7 @@ public final class BluetoothPairingService extends Service {
|
||||
String name = intent.getStringExtra(BluetoothDevice.EXTRA_NAME);
|
||||
if (TextUtils.isEmpty(name)) {
|
||||
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
|
||||
name = device != null ? device.getAliasName() : res.getString(android.R.string.unknownName);
|
||||
name = device != null ? device.getAlias() : res.getString(android.R.string.unknownName);
|
||||
}
|
||||
|
||||
Log.d(TAG, "Show pairing notification for " + mDevice.getAddress() + " (" + name + ")");
|
||||
|
||||
Reference in New Issue
Block a user