diff --git a/app/src/main/java/eu/faircode/email/FragmentIdentity.java b/app/src/main/java/eu/faircode/email/FragmentIdentity.java
index c670bf95b4..6cc2235a1b 100644
--- a/app/src/main/java/eu/faircode/email/FragmentIdentity.java
+++ b/app/src/main/java/eu/faircode/email/FragmentIdentity.java
@@ -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) {
diff --git a/app/src/main/res/layout/fragment_identity.xml b/app/src/main/res/layout/fragment_identity.xml
index 1390022055..22fca755b9 100644
--- a/app/src/main/res/layout/fragment_identity.xml
+++ b/app/src/main/res/layout/fragment_identity.xml
@@ -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" />
+
+