mirror of https://github.com/M66B/FairEmail.git
Added search index help button
This commit is contained in:
parent
3db2bbceff
commit
8f66c88f9b
|
@ -117,6 +117,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
private SwitchCompat swICalTentative;
|
||||
private ImageButton ibICalTentative;
|
||||
private SwitchCompat swFts;
|
||||
private ImageButton ibFts;
|
||||
private TextView tvFtsIndexed;
|
||||
private TextView tvFtsPro;
|
||||
private SwitchCompat swClassification;
|
||||
private TextView tvClassMinProbability;
|
||||
private SeekBar sbClassMinProbability;
|
||||
|
@ -124,8 +127,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
private SeekBar sbClassMinDifference;
|
||||
private SwitchCompat swShowFiltered;
|
||||
private ImageButton ibClassification;
|
||||
private TextView tvFtsIndexed;
|
||||
private TextView tvFtsPro;
|
||||
private Spinner spLanguage;
|
||||
private SwitchCompat swUpdates;
|
||||
private TextView tvGithubPrivacy;
|
||||
|
@ -386,6 +387,9 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
swICalTentative = view.findViewById(R.id.swICalTentative);
|
||||
ibICalTentative = view.findViewById(R.id.ibICalTentative);
|
||||
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);
|
||||
ibClassification = view.findViewById(R.id.ibClassification);
|
||||
tvClassMinProbability = view.findViewById(R.id.tvClassMinProbability);
|
||||
|
@ -393,8 +397,6 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|||
tvClassMinDifference = view.findViewById(R.id.tvClassMinDifference);
|
||||
sbClassMinDifference = view.findViewById(R.id.sbClassMinDifference);
|
||||
swShowFiltered = view.findViewById(R.id.swShowFiltered);
|
||||
tvFtsIndexed = view.findViewById(R.id.tvFtsIndexed);
|
||||
tvFtsPro = view.findViewById(R.id.tvFtsPro);
|
||||
spLanguage = view.findViewById(R.id.spLanguage);
|
||||
swUpdates = view.findViewById(R.id.swUpdates);
|
||||
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);
|
||||
|
||||
swClassification.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
|
|
|
@ -203,6 +203,18 @@
|
|||
app:layout_constraintStart_toStartOf="parent"
|
||||
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
|
||||
android:id="@+id/tvFtsIndexed"
|
||||
android:layout_width="0dp"
|
||||
|
@ -214,7 +226,7 @@
|
|||
android:textStyle="italic"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvFtsHint" />
|
||||
app:layout_constraintTop_toBottomOf="@id/ibFts" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tvFtsPro"
|
||||
|
|
Loading…
Reference in New Issue