Use same fallback bt name in Settings and notification.

Bug: 30126659
Change-Id: Id1432b459a4368bae9af6067307c4da0008f94aa
This commit is contained in:
Fan Zhang
2016-08-08 14:48:24 -07:00
parent 01f26e84f4
commit 97ca78975a
3 changed files with 15 additions and 12 deletions

View File

@@ -135,7 +135,7 @@ public final class BluetoothPermissionRequest extends BroadcastReceiver {
deleteIntent.putExtra(BluetoothDevice.EXTRA_CONNECTION_ACCESS_RESULT,
BluetoothDevice.CONNECTION_ACCESS_NO);
deleteIntent.putExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE, mRequestType);
String deviceAlias = mDevice != null ? mDevice.getAliasName() : null;
String deviceAlias = Utils.createRemoteName(context, mDevice);
switch (mRequestType) {
case BluetoothDevice.REQUEST_TYPE_PHONEBOOK_ACCESS:
title = context.getString(R.string.bluetooth_phonebook_request);