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:
@@ -107,6 +107,11 @@ public class BluetoothDeviceDetailsFragment extends RestrictedDashboardFragment
|
||||
mDeviceAddress = getArguments().getString(KEY_DEVICE_ADDRESS);
|
||||
mManager = getLocalBluetoothManager(context);
|
||||
mCachedDevice = getCachedDevice(mDeviceAddress);
|
||||
if (mCachedDevice == null) {
|
||||
// Close this page if device is null with invalid device mac address
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
super.onAttach(context);
|
||||
use(AdvancedBluetoothDetailsHeaderController.class).init(mCachedDevice);
|
||||
|
||||
|
Reference in New Issue
Block a user