diff --git a/app/src/main/java/eu/faircode/email/FragmentDialogSearch.java b/app/src/main/java/eu/faircode/email/FragmentDialogSearch.java index 409a74160c..a81d4795a1 100644 --- a/app/src/main/java/eu/faircode/email/FragmentDialogSearch.java +++ b/app/src/main/java/eu/faircode/email/FragmentDialogSearch.java @@ -102,6 +102,7 @@ public class FragmentDialogSearch extends FragmentDialogBase { final CheckBox cbSubject = dview.findViewById(R.id.cbSubject); final CheckBox cbKeywords = dview.findViewById(R.id.cbKeywords); final CheckBox cbMessage = dview.findViewById(R.id.cbMessage); + final TextView tvSearchTextUnsupported = dview.findViewById(R.id.tvSearchTextUnsupported); final CheckBox cbNotes = dview.findViewById(R.id.cbNotes); final CheckBox cbHeaders = dview.findViewById(R.id.cbHeaders); final CheckBox cbHtml = dview.findViewById(R.id.cbHtml); @@ -354,6 +355,8 @@ public class FragmentDialogSearch extends FragmentDialogBase { cbSubject.setChecked(last_search_subject); cbKeywords.setChecked(last_search_keywords); cbMessage.setChecked(last_search_message); + tvSearchTextUnsupported.setText(getString(R.string.title_search_text_unsupported, + "full text search not supported")); cbNotes.setChecked(last_search_notes); tvAfter.setText(null); tvBefore.setText(null); diff --git a/app/src/main/res/layout/dialog_search.xml b/app/src/main/res/layout/dialog_search.xml index bea6812096..b0d746d506 100644 --- a/app/src/main/res/layout/dialog_search.xml +++ b/app/src/main/res/layout/dialog_search.xml @@ -319,6 +319,18 @@ app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/cbMessage" /> + + + app:layout_constraintTop_toBottomOf="@id/tvSearchTextUnsupported" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e7f3bde426..2784383e73 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1250,6 +1250,7 @@ The options below are to continue searching the email server. Searching for text in messages, when there are a large number of messages, might not work on some servers + \'%s\' means that the mail server doesn\'t support searching in message texts Searching for messages by size, when there are a large number of messages, might not work on some servers More options Use search index