Added auth check info button

pull/207/head
M66B 3 years ago
parent 1db5741187
commit cb168a6133

@ -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) {

@ -179,6 +179,7 @@ public class Helper {
static final String TEST_URI = "https://play.google.com/apps/testing/" + BuildConfig.APPLICATION_ID;
static final String BIMI_PRIVACY_URI = "https://datatracker.ietf.org/doc/html/draft-brotman-ietf-bimi-guidance-03#section-7.4";
static final String ID_COMMAND_URI = "https://datatracker.ietf.org/doc/html/rfc2971#section-3.1";
static final String AUTH_RESULTS_URI = "https://datatracker.ietf.org/doc/html/rfc7601";
static final String FAVICON_PRIVACY_URI = "https://en.wikipedia.org/wiki/Favicon";
static final String GRAVATAR_PRIVACY_URI = "https://en.wikipedia.org/wiki/Gravatar";
static final String LICENSE_URI = "https://www.gnu.org/licenses/gpl-3.0.html";

@ -769,6 +769,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/swCheckAuthentication" />
<eu.faircode.email.FixedImageButton
android:id="@+id/ibCheckAuthenticationInfo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCheckAuthenticationHint"
app:srcCompat="@drawable/twotone_info_24" />
<androidx.appcompat.widget.SwitchCompat
android:id="@+id/swCheckTls"
android:layout_width="0dp"
@ -778,7 +788,7 @@
android:text="@string/title_advanced_check_tls"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCheckAuthenticationHint"
app:layout_constraintTop_toBottomOf="@id/ibCheckAuthenticationInfo"
app:switchPadding="12dp" />
<eu.faircode.email.FixedTextView

Loading…
Cancel
Save