Show ambient volume contrl only for hearing devices
Flag: EXEMPT bugfix Bug: 388156028 Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest Change-Id: Ia38fd90f798dec9a46366ca15e358b42f7d7fe70
This commit is contained in:
@@ -129,7 +129,7 @@ public class BluetoothDetailsAmbientVolumePreferenceController extends Bluetooth
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return mCachedDevice.getProfiles().stream().anyMatch(
|
||||
return mCachedDevice.isHearingDevice() && mCachedDevice.getProfiles().stream().anyMatch(
|
||||
profile -> profile instanceof VolumeControlProfile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user