Added EHLO info button

pull/214/head
M66B 1 year ago
parent df4669eb8d
commit 9880a0bdbc

@ -111,6 +111,7 @@ public class FragmentIdentity extends FragmentBase {
private EditText etRealm;
private CheckBox cbUseIp;
private EditText etEhlo;
private ImageButton ibEhlo;
private CheckBox cbSynchronize;
private CheckBox cbPrimary;
@ -217,6 +218,7 @@ public class FragmentIdentity extends FragmentBase {
etRealm = view.findViewById(R.id.etRealm);
cbUseIp = view.findViewById(R.id.cbUseIp);
etEhlo = view.findViewById(R.id.etEhlo);
ibEhlo = view.findViewById(R.id.ibEhlo);
cbSynchronize = view.findViewById(R.id.cbSynchronize);
cbPrimary = view.findViewById(R.id.cbPrimary);
@ -490,6 +492,13 @@ public class FragmentIdentity extends FragmentBase {
}
});
ibEhlo.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.view(v.getContext(), Uri.parse("https://dummy.faircode.eu/"), true);
}
});
cbSynchronize.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {

@ -539,10 +539,21 @@
android:importantForAutofill="no"
android:inputType="textNoSuggestions"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintEnd_toStartOf="@+id/ibEhlo"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvEhlo" />
<ImageButton
android:id="@+id/ibEhlo"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@string/title_info"
android:tooltipText="@string/title_info"
app:layout_constraintBottom_toBottomOf="@+id/etEhlo"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/etEhlo"
app:srcCompat="@drawable/twotone_info_24" />
<CheckBox
android:id="@+id/cbSynchronize"
android:layout_width="wrap_content"
@ -1068,7 +1079,7 @@
tvUser,etUser,tvPassword,tilPassword,tvCaseSensitiveHint,tvPasswordStorage,
btnCertificate,tvCertificate,
tvRealm,etRealm,
cbUseIp,tvUseIpHint,tvEhlo,etEhlo,
cbUseIp,tvUseIpHint,tvEhlo,etEhlo,ibEhlo,
cbSynchronize,cbPrimary,cbSelf,tvSelfHint,
cbSenderExtra,cbSenderExtraName,cbReplyExtraName,tvSenderExtra,etSenderExtra,ibSenderExtra,tvSenderExtraHint,
tvReplyTo,etReplyTo,tvCc,etCc,tvCcHint,tvBcc,etBcc,tvBccHint,

Loading…
Cancel
Save