diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java
index e07dcc2a..d268ab94 100644
--- a/app/src/main/java/eu/faircode/email/FragmentAccount.java
+++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java
@@ -92,8 +92,8 @@ public class FragmentAccount extends Fragment {
providers.add(0, new Provider(getString(R.string.title_custom)));
// Get controls
- spProfile = view.findViewById(R.id.spProvider);
etName = view.findViewById(R.id.etName);
+ spProfile = view.findViewById(R.id.spProvider);
etHost = view.findViewById(R.id.etHost);
etPort = view.findViewById(R.id.etPort);
etUser = view.findViewById(R.id.etUser);
diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml
index 9b659957..1fdc1d77 100644
--- a/app/src/main/res/layout/fragment_account.xml
+++ b/app/src/main/res/layout/fragment_account.xml
@@ -12,45 +12,45 @@
android:layout_height="match_parent"
android:padding="12dp">
-
+
-
+ app:layout_constraintTop_toBottomOf="@id/tvName" />
-
+
+ app:layout_constraintTop_toBottomOf="@id/etName" />
-
+ app:layout_constraintTop_toBottomOf="@id/tvProvider" />
@@ -62,7 +62,7 @@
android:text="@string/title_imap"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toBottomOf="@id/etName" />
+ app:layout_constraintTop_toBottomOf="@id/spProvider" />