[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:
@@ -55,7 +55,7 @@ public class AudioSharingBluetoothDeviceUpdater extends BluetoothDeviceUpdater
|
||||
if (isDeviceConnected(cachedDevice) && isDeviceInCachedDevicesList(cachedDevice)) {
|
||||
// If device is LE audio device and has a broadcast source,
|
||||
// it would show in audio sharing devices group.
|
||||
if (BluetoothUtils.isAudioSharingEnabled()
|
||||
if (BluetoothUtils.isAudioSharingUIAvailable(mContext)
|
||||
&& cachedDevice.isConnectedLeAudioDevice()
|
||||
&& BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, mLocalBtManager)) {
|
||||
isFilterMatched = true;
|
||||
|
||||
Reference in New Issue
Block a user