don't search on options that should be hidden
This commit is contained in:
@@ -70,6 +70,9 @@ public class Option {
|
|||||||
* @return true if this option does need to be filtered
|
* @return true if this option does need to be filtered
|
||||||
*/
|
*/
|
||||||
public boolean filter(String searchString) {
|
public boolean filter(String searchString) {
|
||||||
|
if (!showCondition()) {
|
||||||
|
return filtered = true;
|
||||||
|
}
|
||||||
if (searchString == null || searchString.length() == 0) {
|
if (searchString == null || searchString.length() == 0) {
|
||||||
filtered = false;
|
filtered = false;
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user