Fixes search.

It now works the same as iOS. It case insensitive matches the entire search text in any of name, size, type, subtype, or alignment.
This commit is contained in:
Tom Hicks
2021-06-25 23:34:33 -07:00
parent d14b09dd91
commit 01750bd772
2 changed files with 47 additions and 1 deletions

View File

@@ -66,4 +66,9 @@ public final class StringHelper {
return null;
}
}
public static boolean containsCaseInsensitive(String text, String search) {
// TODO: find a locale independent way to do this
return text.toLowerCase().contains(search.toLowerCase());
}
}