Fixed saving searches

pull/209/head
M66B 2 years ago
parent 68f5e7e236
commit b27c6101ed

@ -5764,7 +5764,7 @@ public class FragmentMessages extends FragmentBase
DB db = DB.getInstance(context); DB db = DB.getInstance(context);
EntitySearch search = null; EntitySearch search = null;
if (criteria.id >= 0) if (criteria.id != null)
search = db.search().getSearch(criteria.id); search = db.search().getSearch(criteria.id);
if (search == null) if (search == null)
search = new EntitySearch(); search = new EntitySearch();

Loading…
Cancel
Save