Add intent action for BT device detail page

Also update detail page to accept cold start:
1. Check whether profile is ready
2. When it is ready, refresh UI

Bug: 123665527
Test: SettingsRoboTests
Change-Id: I39382fd97e9da46fca08cd2e4a3ef15d32703664
This commit is contained in:
jackqdyulei
2019-02-07 15:47:52 -08:00
parent 7946eee850
commit 715408e592
6 changed files with 78 additions and 16 deletions

View File

@@ -70,16 +70,16 @@ public class BluetoothDeviceDetailsRotationTest {
BluetoothDeviceDetailsFragment.sTestDataFactory =
new BluetoothDeviceDetailsFragment.TestDataFactory() {
@Override
public CachedBluetoothDevice getDevice(String deviceAddress) {
return mCachedDevice;
}
@Override
public CachedBluetoothDevice getDevice(String deviceAddress) {
return mCachedDevice;
}
@Override
public LocalBluetoothManager getManager(Context context) {
return mBluetoothManager;
}
};
@Override
public LocalBluetoothManager getManager(Context context) {
return mBluetoothManager;
}
};
}
@Test
@@ -103,4 +103,4 @@ public class BluetoothDeviceDetailsRotationTest {
throw new RuntimeException(e);
}
}
}
}