Added help button / store tentatively

pull/214/head
M66B 2 years ago
parent e1a244ad63
commit 3db2bbceff

@ -115,6 +115,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
private SwitchCompat swExternalAnswer; private SwitchCompat swExternalAnswer;
private SwitchCompat swShortcuts; private SwitchCompat swShortcuts;
private SwitchCompat swICalTentative; private SwitchCompat swICalTentative;
private ImageButton ibICalTentative;
private SwitchCompat swFts; private SwitchCompat swFts;
private SwitchCompat swClassification; private SwitchCompat swClassification;
private TextView tvClassMinProbability; private TextView tvClassMinProbability;
@ -383,6 +384,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swExternalAnswer = view.findViewById(R.id.swExternalAnswer); swExternalAnswer = view.findViewById(R.id.swExternalAnswer);
swShortcuts = view.findViewById(R.id.swShortcuts); swShortcuts = view.findViewById(R.id.swShortcuts);
swICalTentative = view.findViewById(R.id.swICalTentative); swICalTentative = view.findViewById(R.id.swICalTentative);
ibICalTentative = view.findViewById(R.id.ibICalTentative);
swFts = view.findViewById(R.id.swFts); swFts = view.findViewById(R.id.swFts);
swClassification = view.findViewById(R.id.swClassification); swClassification = view.findViewById(R.id.swClassification);
ibClassification = view.findViewById(R.id.ibClassification); ibClassification = view.findViewById(R.id.ibClassification);
@ -618,6 +620,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
} }
}); });
ibICalTentative.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 186);
}
});
swFts.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { swFts.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

@ -168,6 +168,18 @@
app:layout_constraintTop_toBottomOf="@id/tvShortcutsHint" app:layout_constraintTop_toBottomOf="@id/tvShortcutsHint"
app:switchPadding="12dp" /> app:switchPadding="12dp" />
<ImageButton
android:id="@+id/ibICalTentative"
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/swICalTentative"
app:srcCompat="@drawable/twotone_info_24" />
<androidx.appcompat.widget.SwitchCompat <androidx.appcompat.widget.SwitchCompat
android:id="@+id/swFts" android:id="@+id/swFts"
android:layout_width="0dp" android:layout_width="0dp"
@ -176,7 +188,7 @@
android:text="@string/title_advanced_fts" android:text="@string/title_advanced_fts"
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/swICalTentative" app:layout_constraintTop_toBottomOf="@id/ibICalTentative"
app:switchPadding="12dp" /> app:switchPadding="12dp" />
<TextView <TextView

Loading…
Cancel
Save