Merge "Show ambient volume contrl only for hearing devices" into main

This commit is contained in:
Angela Wang
2025-01-13 22:44:41 -08:00
committed by Android (Google) Code Review
2 changed files with 28 additions and 16 deletions

View File

@@ -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);
}