1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00

Skip saving special searches

This commit is contained in:
M66B 2019-11-13 09:25:26 +01:00
parent 8447ae702e
commit e94239b9fc

View file

@ -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;
}
});