Added TLS info button

This commit is contained in:
M66B
2022-01-09 10:51:23 +01:00
parent 73339efcd7
commit c37cd879f8
2 changed files with 21 additions and 2 deletions

View File

@@ -23,7 +23,6 @@ import android.app.Dialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.view.LayoutInflater;
@@ -92,6 +91,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
private SwitchCompat swCheckAuthentication;
private SwitchCompat swCheckTls;
private ImageButton ibCheckTlsInfo;
private SwitchCompat swCheckReply;
private SwitchCompat swCheckMx;
private SwitchCompat swCheckBlocklist;
@@ -163,6 +163,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
swCheckAuthentication = view.findViewById(R.id.swCheckAuthentication);
swCheckTls = view.findViewById(R.id.swCheckTls);
ibCheckTlsInfo = view.findViewById(R.id.ibCheckTlsInfo);
swCheckReply = view.findViewById(R.id.swCheckReply);
swCheckMx = view.findViewById(R.id.swCheckMx);
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() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {