Remove unavailable preset info option
Bug: 347134589 Test: atest BluetoothDetailsHearingAidsPresetsControllerTest Flag: EXEMPT bugfix Change-Id: Iabdbe675a08fcd172617ef31dd0b8fbe8dccbb89
This commit is contained in:
@@ -276,7 +276,8 @@ public class BluetoothDetailsHearingAidsPresetsController extends
|
||||
return;
|
||||
}
|
||||
List<BluetoothHapPresetInfo> infoList = mHapClientProfile.getAllPresetInfo(
|
||||
mCachedDevice.getDevice());
|
||||
mCachedDevice.getDevice()).stream().filter(
|
||||
BluetoothHapPresetInfo::isAvailable).toList();
|
||||
CharSequence[] presetNames = new CharSequence[infoList.size()];
|
||||
CharSequence[] presetIndexes = new CharSequence[infoList.size()];
|
||||
for (int i = 0; i < infoList.size(); i++) {
|
||||
|
Reference in New Issue
Block a user