Merge "Bluetooth: mLocalAdapter should never be null" into oc-dr1-dev

This commit is contained in:
TreeHugger Robot
2017-07-11 21:16:32 +00:00
committed by Android (Google) Code Review

View File

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