Unable to set Bluetooth configuration at the first time

- initial configuration value
- add test case

Bug: 147634692
Test: make -j50 RunSettingsRoboTests
Change-Id: If55036d358d664bcbcb816a38f18019c62976d38
This commit is contained in:
timhypeng
2020-01-13 16:56:51 +08:00
parent fd17fcbf11
commit 9a8ec96e48
5 changed files with 46 additions and 9 deletions

View File

@@ -33,13 +33,11 @@ public abstract class AbstractBluetoothPreferenceController extends
DeveloperOptionsPreferenceController implements BluetoothServiceConnectionListener,
LifecycleObserver, OnDestroy {
protected final BluetoothA2dpConfigStore mBluetoothA2dpConfigStore;
protected volatile BluetoothA2dp mBluetoothA2dp;
public AbstractBluetoothPreferenceController(Context context, Lifecycle lifecycle,
BluetoothA2dpConfigStore store) {
super(context);
mBluetoothA2dpConfigStore = store;
if (lifecycle != null) {
lifecycle.addObserver(this);
}