mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Skip saving special searches
This commit is contained in:
parent
8447ae702e
commit
e94239b9fc
1 changed files with 4 additions and 1 deletions
|
@ -115,6 +115,9 @@ public class SearchViewEx extends SearchView {
|
||||||
intf.onSave(query);
|
intf.onSave(query);
|
||||||
menuSearch.collapseActionView();
|
menuSearch.collapseActionView();
|
||||||
intf.onSearch(query);
|
intf.onSearch(query);
|
||||||
|
|
||||||
|
String prefix = getContext().getString(R.string.title_search_special_prefix);
|
||||||
|
if (query != null && !query.startsWith(prefix + ":"))
|
||||||
prefs.edit().putString("last_search", query).apply();
|
prefs.edit().putString("last_search", query).apply();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue