mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
Revert "Added option to disable partial words search after FTS"
This reverts commit c9b0d0ae4a.
This commit is contained in:
@@ -115,7 +115,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private SwitchCompat swExternalAnswer;
|
||||
private SwitchCompat swShortcuts;
|
||||
private SwitchCompat swFts;
|
||||
private SwitchCompat swFtsFallback;
|
||||
private SwitchCompat swClassification;
|
||||
private TextView tvClassMinProbability;
|
||||
private SeekBar sbClassMinProbability;
|
||||
@@ -280,7 +279,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private static final long MIN_FILE_SIZE = 1024 * 1024L;
|
||||
|
||||
private final static String[] RESET_OPTIONS = new String[]{
|
||||
"sort_answers", "shortcuts", "fts", "fts_fallback",
|
||||
"sort_answers", "shortcuts", "fts",
|
||||
"classification", "class_min_probability", "class_min_difference",
|
||||
"show_filtered",
|
||||
"language",
|
||||
@@ -369,7 +368,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swExternalAnswer = view.findViewById(R.id.swExternalAnswer);
|
||||
swShortcuts = view.findViewById(R.id.swShortcuts);
|
||||
swFts = view.findViewById(R.id.swFts);
|
||||
swFtsFallback = view.findViewById(R.id.swFtsFallback);
|
||||
swClassification = view.findViewById(R.id.swClassification);
|
||||
ibClassification = view.findViewById(R.id.ibClassification);
|
||||
tvClassMinProbability = view.findViewById(R.id.tvClassMinProbability);
|
||||
@@ -588,7 +586,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("fts", checked).apply();
|
||||
swFtsFallback.setEnabled(checked);
|
||||
|
||||
WorkerFts.init(getContext(), true);
|
||||
|
||||
@@ -622,13 +619,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
}
|
||||
});
|
||||
|
||||
swFtsFallback.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("fts_fallback", checked).apply();
|
||||
}
|
||||
});
|
||||
|
||||
Helper.linkPro(tvFtsPro);
|
||||
|
||||
swClassification.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@@ -2487,8 +2477,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swExternalAnswer.setChecked(Helper.isComponentEnabled(getContext(), ActivityAnswer.class));
|
||||
swShortcuts.setChecked(prefs.getBoolean("shortcuts", true));
|
||||
swFts.setChecked(prefs.getBoolean("fts", false));
|
||||
swFtsFallback.setChecked(prefs.getBoolean("fts_fallback", true));
|
||||
swFtsFallback.setEnabled(swFts.isChecked());
|
||||
|
||||
swClassification.setChecked(prefs.getBoolean("classification", false));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user