mirror of
https://github.com/revanced/revanced-manager
synced 2024-05-14 13:56:57 +02:00
feat: allow searching for displayed patch names (#348)
This commit is contained in:
parent
1aa24e2871
commit
a90923011a
@ -73,9 +73,9 @@ class PatchesSelectorViewModel extends BaseViewModel {
|
||||
.where((patch) =>
|
||||
query.isEmpty ||
|
||||
query.length < 2 ||
|
||||
patch.name.toLowerCase().contains(
|
||||
query.toLowerCase(),
|
||||
))
|
||||
patch.name.toLowerCase().contains(query.toLowerCase()) ||
|
||||
patch.getSimpleName().toLowerCase().contains(query.toLowerCase())
|
||||
)
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user