mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +00:00
Extra search
This commit is contained in:
parent
eafa031c0b
commit
1ffcd14a58
1 changed files with 12 additions and 1 deletions
|
@ -457,8 +457,19 @@ public class FragmentOptions extends FragmentBase {
|
|||
for (int i = 0; i <= group.getChildCount(); i++)
|
||||
id = getSuggestions(query, id, tab, title, group.getChildAt(i), cursor);
|
||||
} else if (view instanceof TextView) {
|
||||
boolean extra = false;
|
||||
if (tab == 0 && view.getId() == R.id.tvManual) {
|
||||
for (int e : new int[]{R.string.title_host, R.string.title_port}) {
|
||||
String text = view.getContext().getString(e);
|
||||
if (text.toLowerCase().contains(query)) {
|
||||
extra = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
String description = ((TextView) view).getText().toString();
|
||||
if (description.toLowerCase().contains(query)) {
|
||||
if (description.toLowerCase().contains(query) || extra) {
|
||||
description = description
|
||||
.replace("%%", "%")
|
||||
.replaceAll("%([0-9]\\$)?[sd]", "#");
|
||||
|
|
Loading…
Reference in a new issue