call getName() from CachedBluetoothDevice, not CachedBluetoothDeviceManager
-add test case "onGetDeviceName" Bug: 112735753 Test: make -j42 RunSettingsRoboTests Change-Id: Id62b6eb8be38fb6ac69ca371563be899b8d61aff
This commit is contained in:
@@ -85,7 +85,7 @@ public class BluetoothPairingController implements OnCheckedChangeListener,
|
||||
|
||||
mType = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_VARIANT, BluetoothDevice.ERROR);
|
||||
mPasskey = intent.getIntExtra(BluetoothDevice.EXTRA_PAIRING_KEY, BluetoothDevice.ERROR);
|
||||
mDeviceName = mBluetoothManager.getCachedDeviceManager().getName(mDevice);
|
||||
mDeviceName = mBluetoothManager.getCachedDeviceManager().findDevice(mDevice).getName();
|
||||
mPbapClientProfile = mBluetoothManager.getProfileManager().getPbapClientProfile();
|
||||
mPasskeyFormatted = formatKey(mPasskey);
|
||||
}
|
||||
|
Reference in New Issue
Block a user