Added auth check info button

This commit is contained in:
M66B
2022-03-13 14:39:19 +01:00
parent 1db5741187
commit cb168a6133
3 changed files with 22 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ import android.app.Dialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.text.format.DateFormat;
import android.view.LayoutInflater;
@@ -91,6 +92,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
private SwitchCompat swTuneKeepAlive;
private SwitchCompat swCheckAuthentication;
private ImageButton ibCheckAuthenticationInfo;
private SwitchCompat swCheckTls;
private ImageButton ibCheckTlsInfo;
private SwitchCompat swCheckReply;
@@ -164,6 +166,7 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
swTuneKeepAlive = view.findViewById(R.id.swTuneKeepAlive);
swCheckAuthentication = view.findViewById(R.id.swCheckAuthentication);
ibCheckAuthenticationInfo = view.findViewById(R.id.ibCheckAuthenticationInfo);
swCheckTls = view.findViewById(R.id.swCheckTls);
ibCheckTlsInfo = view.findViewById(R.id.ibCheckTlsInfo);
swCheckReply = view.findViewById(R.id.swCheckReply);
@@ -399,6 +402,13 @@ public class FragmentOptionsSynchronize extends FragmentBase implements SharedPr
}
});
ibCheckAuthenticationInfo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(v.getContext(), Uri.parse(Helper.AUTH_RESULTS_URI), true);
}
});
swCheckTls.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean checked) {