also search in list option values when searching in options menu
This commit is contained in:
parent
5b324bf6ba
commit
2b954f6c7c
|
@ -75,6 +75,14 @@ public class Option {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
filtered = !name.toLowerCase().contains(searchString) && !description.toLowerCase().contains(searchString);
|
filtered = !name.toLowerCase().contains(searchString) && !description.toLowerCase().contains(searchString);
|
||||||
|
if (this instanceof ListOption) {
|
||||||
|
for (Object itm : ((ListOption) this).getListItems()) {
|
||||||
|
if (itm != null && itm.toString().toLowerCase().contains(searchString)) {
|
||||||
|
filtered = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return filtered;
|
return filtered;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user