Merge "Show ambient volume contrl only for hearing devices" into main
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