mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Added search index help button
This commit is contained in:
parent
3db2bbceff
commit
8f66c88f9b
2 changed files with 26 additions and 5 deletions
|
@ -117,6 +117,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
private SwitchCompat swICalTentative;
|
private SwitchCompat swICalTentative;
|
||||||
private ImageButton ibICalTentative;
|
private ImageButton ibICalTentative;
|
||||||
private SwitchCompat swFts;
|
private SwitchCompat swFts;
|
||||||
|
private ImageButton ibFts;
|
||||||
|
private TextView tvFtsIndexed;
|
||||||
|
private TextView tvFtsPro;
|
||||||
private SwitchCompat swClassification;
|
private SwitchCompat swClassification;
|
||||||
private TextView tvClassMinProbability;
|
private TextView tvClassMinProbability;
|
||||||
private SeekBar sbClassMinProbability;
|
private SeekBar sbClassMinProbability;
|
||||||
|
@ -124,8 +127,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
private SeekBar sbClassMinDifference;
|
private SeekBar sbClassMinDifference;
|
||||||
private SwitchCompat swShowFiltered;
|
private SwitchCompat swShowFiltered;
|
||||||
private ImageButton ibClassification;
|
private ImageButton ibClassification;
|
||||||
private TextView tvFtsIndexed;
|
|
||||||
private TextView tvFtsPro;
|
|
||||||
private Spinner spLanguage;
|
private Spinner spLanguage;
|
||||||
private SwitchCompat swUpdates;
|
private SwitchCompat swUpdates;
|
||||||
private TextView tvGithubPrivacy;
|
private TextView tvGithubPrivacy;
|
||||||
|
@ -386,6 +387,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
swICalTentative = view.findViewById(R.id.swICalTentative);
|
swICalTentative = view.findViewById(R.id.swICalTentative);
|
||||||
ibICalTentative = view.findViewById(R.id.ibICalTentative);
|
ibICalTentative = view.findViewById(R.id.ibICalTentative);
|
||||||
swFts = view.findViewById(R.id.swFts);
|
swFts = view.findViewById(R.id.swFts);
|
||||||
|
ibFts = view.findViewById(R.id.ibFts);
|
||||||
|
tvFtsIndexed = view.findViewById(R.id.tvFtsIndexed);
|
||||||
|
tvFtsPro = view.findViewById(R.id.tvFtsPro);
|
||||||
swClassification = view.findViewById(R.id.swClassification);
|
swClassification = view.findViewById(R.id.swClassification);
|
||||||
ibClassification = view.findViewById(R.id.ibClassification);
|
ibClassification = view.findViewById(R.id.ibClassification);
|
||||||
tvClassMinProbability = view.findViewById(R.id.tvClassMinProbability);
|
tvClassMinProbability = view.findViewById(R.id.tvClassMinProbability);
|
||||||
|
@ -393,8 +397,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
tvClassMinDifference = view.findViewById(R.id.tvClassMinDifference);
|
tvClassMinDifference = view.findViewById(R.id.tvClassMinDifference);
|
||||||
sbClassMinDifference = view.findViewById(R.id.sbClassMinDifference);
|
sbClassMinDifference = view.findViewById(R.id.sbClassMinDifference);
|
||||||
swShowFiltered = view.findViewById(R.id.swShowFiltered);
|
swShowFiltered = view.findViewById(R.id.swShowFiltered);
|
||||||
tvFtsIndexed = view.findViewById(R.id.tvFtsIndexed);
|
|
||||||
tvFtsPro = view.findViewById(R.id.tvFtsPro);
|
|
||||||
spLanguage = view.findViewById(R.id.spLanguage);
|
spLanguage = view.findViewById(R.id.spLanguage);
|
||||||
swUpdates = view.findViewById(R.id.swUpdates);
|
swUpdates = view.findViewById(R.id.swUpdates);
|
||||||
tvGithubPrivacy = view.findViewById(R.id.tvGithubPrivacy);
|
tvGithubPrivacy = view.findViewById(R.id.tvGithubPrivacy);
|
||||||
|
@ -664,6 +666,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
ibFts.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Helper.viewFAQ(v.getContext(), 13);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
Helper.linkPro(tvFtsPro);
|
Helper.linkPro(tvFtsPro);
|
||||||
|
|
||||||
swClassification.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
swClassification.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
|
|
|
@ -203,6 +203,18 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/swFts" />
|
app:layout_constraintTop_toBottomOf="@id/swFts" />
|
||||||
|
|
||||||
|
<ImageButton
|
||||||
|
android:id="@+id/ibFts"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="12dp"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:contentDescription="@string/title_info"
|
||||||
|
android:tooltipText="@string/title_info"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/tvFtsHint"
|
||||||
|
app:srcCompat="@drawable/twotone_info_24" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tvFtsIndexed"
|
android:id="@+id/tvFtsIndexed"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -214,7 +226,7 @@
|
||||||
android:textStyle="italic"
|
android:textStyle="italic"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/tvFtsHint" />
|
app:layout_constraintTop_toBottomOf="@id/ibFts" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/tvFtsPro"
|
android:id="@+id/tvFtsPro"
|
||||||
|
|
Loading…
Reference in a new issue