[Audiosharing] Enable audio sharing UI when preview option on.
Test: atest Bug: 368401233 Flag: com.android.settingslib.flags.audio_sharing_developer_option Change-Id: Idbc84e2c43f7361c58c440d1a7d7c78edd3c0521
This commit is contained in:
@@ -62,7 +62,7 @@ public class AudioSharingReceiver extends BroadcastReceiver {
|
||||
intent.getIntExtra(
|
||||
LocalBluetoothLeBroadcast.EXTRA_LE_AUDIO_SHARING_STATE, -1);
|
||||
if (state == LocalBluetoothLeBroadcast.BROADCAST_STATE_ON) {
|
||||
if (!BluetoothUtils.isAudioSharingEnabled()) {
|
||||
if (!BluetoothUtils.isAudioSharingUIAvailable(context)) {
|
||||
Log.w(TAG, "Skip showSharingNotification, feature disabled.");
|
||||
return;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ public class AudioSharingReceiver extends BroadcastReceiver {
|
||||
}
|
||||
break;
|
||||
case ACTION_LE_AUDIO_SHARING_STOP:
|
||||
if (BluetoothUtils.isAudioSharingEnabled()) {
|
||||
if (BluetoothUtils.isAudioSharingUIAvailable(context)) {
|
||||
LocalBluetoothManager manager = Utils.getLocalBtManager(context);
|
||||
if (BluetoothUtils.isBroadcasting(manager)) {
|
||||
AudioSharingUtils.stopBroadcasting(manager);
|
||||
|
||||
Reference in New Issue
Block a user