Fix testcase failed
Bug: 292979979 Test: [Pass]make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDeviceDetailsFragmentTest Change-Id: If09f4d8ad9c974c2a7f72932d544490655b92cf7
This commit is contained in:
@@ -235,7 +235,8 @@ public final class Utils {
|
||||
* @param cachedBluetoothDevice The main cachedBluetoothDevice.
|
||||
* @return all cachedBluetoothDevices with the same groupId.
|
||||
*/
|
||||
public static List<CachedBluetoothDevice> getAllOfCachedBluetoothDevices(Context context,
|
||||
public static List<CachedBluetoothDevice> getAllOfCachedBluetoothDevices(
|
||||
LocalBluetoothManager localBtMgr,
|
||||
CachedBluetoothDevice cachedBluetoothDevice) {
|
||||
List<CachedBluetoothDevice> cachedBluetoothDevices = new ArrayList<>();
|
||||
if (cachedBluetoothDevice == null) {
|
||||
@@ -248,7 +249,6 @@ public final class Utils {
|
||||
return cachedBluetoothDevices;
|
||||
}
|
||||
|
||||
final LocalBluetoothManager localBtMgr = Utils.getLocalBtManager(context);
|
||||
if (localBtMgr == null) {
|
||||
Log.e(TAG, "getAllOfCachedBluetoothDevices: no LocalBluetoothManager");
|
||||
return cachedBluetoothDevices;
|
||||
|
||||
Reference in New Issue
Block a user