mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Search via index: whole words only
This commit is contained in:
@@ -105,6 +105,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||
ImageButton ibInvite = dview.findViewById(R.id.ibInvite);
|
||||
ImageButton ibAttachment = dview.findViewById(R.id.ibAttachment);
|
||||
ImageButton ibNotes = dview.findViewById(R.id.ibNotes);
|
||||
TextView tvHintFts = dview.findViewById(R.id.tvHintFts);
|
||||
ibMore = dview.findViewById(R.id.ibMore);
|
||||
tvMore = dview.findViewById(R.id.tvMore);
|
||||
CheckBox cbSearchIndex = dview.findViewById(R.id.cbSearchIndex);
|
||||
@@ -252,6 +253,8 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||
}
|
||||
});
|
||||
|
||||
tvHintFts.setVisibility(last_fts && fts && pro ? View.VISIBLE : View.GONE);
|
||||
|
||||
View.OnClickListener onMore = new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
@@ -288,6 +291,7 @@ public class FragmentDialogSearch extends FragmentDialogBase {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
|
||||
prefs.edit().putBoolean("last_fts", isChecked).apply();
|
||||
tvHintFts.setVisibility(isChecked && fts && pro ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user