Merge "Replaced use of Bluetooth resource by SystemApi" am: 49a9361062
am: 6f6f5e6b42
am: fe5b587245
am: 32c19cf335
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1939113 Change-Id: Idb1f5503265f831f6efa7c20cb3b5f15dbafad75
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.settings.development;
|
||||
|
||||
import android.bluetooth.BluetoothManager;
|
||||
import android.content.Context;
|
||||
import android.os.SystemProperties;
|
||||
|
||||
@@ -42,8 +43,9 @@ public class BluetoothMaxConnectedAudioDevicesPreferenceController extends
|
||||
|
||||
public BluetoothMaxConnectedAudioDevicesPreferenceController(Context context) {
|
||||
super(context);
|
||||
mDefaultMaxConnectedAudioDevices = mContext.getResources().getInteger(
|
||||
com.android.internal.R.integer.config_bluetooth_max_connected_audio_devices);
|
||||
BluetoothManager mBluetoothManager = context.getSystemService(BluetoothManager.class);
|
||||
mDefaultMaxConnectedAudioDevices = mBluetoothManager.getAdapter()
|
||||
.getMaxConnectedAudioDevices();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user