Bluetooth: mLocalAdapter should never be null

* mLocalAdapter should never be null
* We should crash if it is ever null

Bug: 63442969
Test: make, pair Bluetooth device
Change-Id: If98f9ea0762927eb57d00224b62abf24bbec69ba
This commit is contained in:
Jack He
2017-07-11 12:04:01 -07:00
parent 9e2984b035
commit a4503c5b8b

View File

@@ -70,10 +70,8 @@ public class BluetoothPairingDetail extends DeviceListPreferenceFragment impleme
public void onStart() {
super.onStart();
if (mLocalAdapter != null) {
updateContent(mLocalAdapter.getBluetoothState());
mAvailableDevicesCategory.setProgress(mLocalAdapter.isDiscovering());
}
updateContent(mLocalAdapter.getBluetoothState());
mAvailableDevicesCategory.setProgress(mLocalAdapter.isDiscovering());
}
@Override