Added TLS info button

pull/194/merge
M66B 4 years ago
parent 73339efcd7
commit c37cd879f8

@ -23,7 +23,6 @@ import android.app.Dialog;
import android.app.TimePickerDialog; import android.app.TimePickerDialog;
import android.content.Context; import android.content.Context;
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle; import android.os.Bundle;
import android.text.format.DateFormat; import android.text.format.DateFormat;
import android.view.LayoutInflater; import android.view.LayoutInflater;
@ -92,6 +91,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
private SwitchCompat swCheckAuthentication; private SwitchCompat swCheckAuthentication;
private SwitchCompat swCheckTls; private SwitchCompat swCheckTls;
private ImageButton ibCheckTlsInfo;
private SwitchCompat swCheckReply; private SwitchCompat swCheckReply;
private SwitchCompat swCheckMx; private SwitchCompat swCheckMx;
private SwitchCompat swCheckBlocklist; private SwitchCompat swCheckBlocklist;
@ -163,6 +163,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
swCheckAuthentication = view.findViewById(R.id.swCheckAuthentication); swCheckAuthentication = view.findViewById(R.id.swCheckAuthentication);
swCheckTls = view.findViewById(R.id.swCheckTls); swCheckTls = view.findViewById(R.id.swCheckTls);
ibCheckTlsInfo = view.findViewById(R.id.ibCheckTlsInfo);
swCheckReply = view.findViewById(R.id.swCheckReply); swCheckReply = view.findViewById(R.id.swCheckReply);
swCheckMx = view.findViewById(R.id.swCheckMx); swCheckMx = view.findViewById(R.id.swCheckMx);
swCheckBlocklist = view.findViewById(R.id.swCheckBlocklist); swCheckBlocklist = view.findViewById(R.id.swCheckBlocklist);
@ -395,6 +396,13 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
} }
}); });
ibCheckTlsInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 176);
}
});
swCheckReply.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() { swCheckReply.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override @Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) { public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

@ -770,6 +770,17 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swCheckTls" /> app:layout_constraintTop_toBottomOf="@id/swCheckTls" />
<eu.faircode.email.FixedImageButton
android:id="@+id/ibCheckTlsInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCheckTlsHint"
app:srcCompat="@drawable/twotone_info_24" />
<androidx.appcompat.widget.SwitchCompat <androidx.appcompat.widget.SwitchCompat
android:id="@+id/swCheckReply" android:id="@+id/swCheckReply"
android:layout_width="0dp" android:layout_width="0dp"
@ -779,7 +790,7 @@
android:text="@string/title_advanced_check_reply_domain" android:text="@string/title_advanced_check_reply_domain"
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/tvCheckTlsHint" app:layout_constraintTop_toBottomOf="@id/ibCheckTlsInfo"
app:switchPadding="12dp" /> app:switchPadding="12dp" />
<eu.faircode.email.FixedTextView <eu.faircode.email.FixedTextView

Loading…
Cancel
Save