Show all devices, including connected ones, into "Previously connected" page
-Add connected devices in "Previously connected" page -Set active when clicking a connected device Bug: 147150246 Test: make -j50 RunSettingsRoboTests Change-Id: I4422cd63c360a4387cedc4f80f34474b42f82a1f
This commit is contained in:
@@ -144,6 +144,15 @@ public class SavedBluetoothDeviceUpdaterTest {
|
||||
verify(mCachedBluetoothDevice).connect();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void onClick_Preference_connected_setActive() {
|
||||
when(mCachedBluetoothDevice.isConnected()).thenReturn(true);
|
||||
|
||||
mBluetoothDeviceUpdater.onPreferenceClick(mPreference);
|
||||
|
||||
verify(mCachedBluetoothDevice).setActive();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() {
|
||||
final List<BluetoothDevice> bluetoothDevices = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user