[Audiosharing] Clean up dup codes
Bug: 305620450 Flag: com.android.settingslib.flags.enable_le_audio_sharing Test: atest Change-Id: Ife2bf26d78e522dc51891be633d6635883923de3
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 (AudioSharingUtils.isFeatureEnabled()
|
||||
if (BluetoothUtils.isAudioSharingEnabled()
|
||||
&& cachedDevice.isConnectedLeAudioDevice()
|
||||
&& BluetoothUtils.hasConnectedBroadcastSource(cachedDevice, mLocalBtManager)) {
|
||||
isFilterMatched = true;
|
||||
|
||||
Reference in New Issue
Block a user