From 98b5b50fd18fcecc006d0c22cd27213ba523d3c0 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 20 Aug 2019 16:54:38 +0200 Subject: [PATCH] Made search on device free --- FAQ.md | 2 +- README.md | 2 +- app/src/main/java/eu/faircode/email/FragmentMessages.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/FAQ.md b/FAQ.md index 2eee4d97fa..67f91a8b82 100644 --- a/FAQ.md +++ b/FAQ.md @@ -531,7 +531,7 @@ Searching local messages is case insensitive and on partial text. The message text of local messages will not be searched if the message text was not downloaded yet. Searching on the server might be case sensitive or case insensitive and might be on partial text or whole words, depending on the provider. -Searching messages is a pro feature. +Searching messages on the device is a free feature, searching messages on the server is a pro feature.
diff --git a/README.md b/README.md index 72a2ef52df..ca5196c87b 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ All pro features are convenience or advanced features. * Reply templates * Accept/decline calendar invitations * Filter rules ([instructions](https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq71)) -* Search on device or server ([instructions](https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq13)) +* Search on server ([instructions](https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq13)) * Keyword management * Biometric authentication ([instructions](https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq113)) * Unified inbox widget diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index a430db4042..2e49772a42 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -4381,7 +4381,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. static void search( final Context context, final LifecycleOwner owner, final FragmentManager manager, long folder, boolean server, String query) { - if (!ActivityBilling.isPro(context)) { + if (server && !ActivityBilling.isPro(context)) { context.startActivity(new Intent(context, ActivityBilling.class)); return; }