diff options
| author | 2024-06-19 10:53:26 +0000 | |
|---|---|---|
| committer | 2024-06-19 10:53:26 +0000 | |
| commit | 092d93df6d08465618c47e22d2110f45206c01ba (patch) | |
| tree | ae17d1246cf476a919caf99875746b68b4fd2f86 | |
| parent | 56cc8bef4aef584783cfba82b234803b4d597709 (diff) | |
Remove unaveilable preset info option
Bug: 347134589
Test: manual test
Flag: EXEMPT bugfix
Change-Id: Ie416fb528734c525cf2349eba857cc61badf2377
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesPresetsController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesPresetsController.java b/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesPresetsController.java index 02fa003a3628..f81124eeeb7f 100644 --- a/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesPresetsController.java +++ b/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/HearingDevicesPresetsController.java @@ -220,7 +220,8 @@ public class HearingDevicesPresetsController implements if (mActiveHearingDevice == null) { return emptyList(); } - return mHapClientProfile.getAllPresetInfo(mActiveHearingDevice.getDevice()); + return mHapClientProfile.getAllPresetInfo(mActiveHearingDevice.getDevice()).stream().filter( + BluetoothHapPresetInfo::isAvailable).toList(); } /** |