Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 092d93df authored by Angela Wang's avatar Angela Wang
Browse files

Remove unaveilable preset info option

Bug: 347134589
Test: manual test
Flag: EXEMPT bugfix
Change-Id: Ie416fb528734c525cf2349eba857cc61badf2377
parent 56cc8bef
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();
    }

    /**