From b49219df992cbfa2b9e10a7f164e38468f0d0da5 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 1 Feb 2024 16:10:52 +0100 Subject: [PATCH] Skip exporting default searches --- .../main/java/eu/faircode/email/FragmentOptionsBackup.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java index 627b57326f..0c736646ba 100644 --- a/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java +++ b/app/src/main/java/eu/faircode/email/FragmentOptionsBackup.java @@ -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();