Skip exporting default searches

This commit is contained in:
M66B 2024-02-01 16:10:52 +01:00
parent e5853451e0
commit b49219df99
1 changed files with 6 additions and 1 deletions

View File

@ -501,8 +501,13 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
// Searches
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());
}
// Certificates
JSONArray jcertificates = new JSONArray();