mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Skip saving special searches
This commit is contained in:
@@ -115,7 +115,10 @@ public class SearchViewEx extends SearchView {
|
||||
intf.onSave(query);
|
||||
menuSearch.collapseActionView();
|
||||
intf.onSearch(query);
|
||||
prefs.edit().putString("last_search", query).apply();
|
||||
|
||||
String prefix = getContext().getString(R.string.title_search_special_prefix);
|
||||
if (query != null && !query.startsWith(prefix + ":"))
|
||||
prefs.edit().putString("last_search", query).apply();
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user