Merge "Developer option crashed when Bluetooth feature disabled" into main
This commit is contained in:
@@ -45,10 +45,11 @@ public class BluetoothMaxConnectedAudioDevicesPreferenceController extends
|
||||
super(context);
|
||||
|
||||
final BluetoothManager bluetoothManager = context.getSystemService(BluetoothManager.class);
|
||||
|
||||
if(bluetoothManager != null && bluetoothManager.getAdapter() != null) {
|
||||
mDefaultMaxConnectedAudioDevices =
|
||||
bluetoothManager.getAdapter().getMaxConnectedAudioDevices();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
|
Reference in New Issue
Block a user