[Audiosharing] Set/get compatibility config by toggle.

Also use startPrivateBroadcast() to start the broadcast with
compatibility config stored in SettingsProvider.

Test: manual
Bug: 305620450
Bug: 292538935
Change-Id: Iff067833fb0668531aa32957b414585751f2bcee
This commit is contained in:
Yiyi Shen
2024-01-22 13:59:05 +08:00
parent ca0647aa8b
commit a4cf715181
3 changed files with 10 additions and 9 deletions

View File

@@ -22,7 +22,6 @@ import android.bluetooth.BluetoothLeBroadcast;
import android.bluetooth.BluetoothLeBroadcastAssistant;
import android.bluetooth.BluetoothLeBroadcastMetadata;
import android.bluetooth.BluetoothLeBroadcastReceiveState;
import android.bluetooth.BluetoothLeBroadcastSubgroupSettings;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
@@ -339,7 +338,7 @@ public class AudioSharingSwitchBarController extends BasePreferenceController
}
mDeviceItemsForSharing.remove(0);
}
mBroadcast.startPrivateBroadcast(BluetoothLeBroadcastSubgroupSettings.QUALITY_HIGH);
mBroadcast.startPrivateBroadcast();
}
private void stopAudioSharing() {