Skip exporting default searches

pull/214/head
M66B 11 months ago
parent e5853451e0
commit b49219df99

@ -501,8 +501,13 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
// Searches // Searches
JSONArray jsearches = new JSONArray(); JSONArray jsearches = new JSONArray();
for (EntitySearch search : db.search().getSearches()) for (EntitySearch search : db.search().getSearches()) {
if (Objects.equals(search.name, context.getString(R.string.title_search_with_flagged)))
continue;
if (Objects.equals(search.name, context.getString(R.string.title_search_with_unseen)))
continue;
jsearches.put(search.toJSON()); jsearches.put(search.toJSON());
}
// Certificates // Certificates
JSONArray jcertificates = new JSONArray(); JSONArray jcertificates = new JSONArray();

Loading…
Cancel
Save