diff --git a/app/src/main/kotlin/com/github/gotify/messages/MessagesActivity.kt b/app/src/main/kotlin/com/github/gotify/messages/MessagesActivity.kt index 5b5704c..60d89d9 100644 --- a/app/src/main/kotlin/com/github/gotify/messages/MessagesActivity.kt +++ b/app/src/main/kotlin/com/github/gotify/messages/MessagesActivity.kt @@ -228,7 +228,7 @@ internal class MessagesActivity : user.text = settings.user?.name val connection = headerView.findViewById(R.id.header_connection) - connection.text = getString(R.string.connection, settings.user?.name, settings.url) + connection.text = settings.url val version = headerView.findViewById(R.id.header_version) version.text = diff --git a/app/src/main/res/layout/nav_header_drawer.xml b/app/src/main/res/layout/nav_header_drawer.xml index 254d281..bb70ce6 100644 --- a/app/src/main/res/layout/nav_header_drawer.xml +++ b/app/src/main/res/layout/nav_header_drawer.xml @@ -1,8 +1,10 @@ + android:theme="@style/ThemeOverlay.Material3.Dark"> @@ -30,33 +33,37 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="@dimen/nav_header_vertical_spacing" - android:text="jmattheis" android:textAppearance="@style/TextAppearance.AppCompat.Body1" - app:layout_constraintBottom_toTopOf="@+id/header_connection" - app:layout_constraintStart_toStartOf="parent" /> + android:maxLines="2" + android:ellipsize="end" + app:layout_constraintTop_toBottomOf="@id/imageView" + app:layout_constraintStart_toStartOf="parent" + tools:text="jmattheis" /> + android:maxLines="2" + android:ellipsize="end" + app:layout_constraintTop_toBottomOf="@id/header_user" + app:layout_constraintStart_toStartOf="parent" + tools:text="https://your.domain.de" /> + app:layout_constraintTop_toBottomOf="@id/header_connection" + app:layout_constraintStart_toStartOf="parent" + tools:text="gotify/android vX.X.X; gotify/server vX.X.X" /> Warning Using HTTP is insecure and it\'s recommend to use HTTPS instead. Use your favorite search engine to get more information about this topic. I Understand - %s@%s There are no messages, yet.\nSend a message to Gotify\nand it will appear here. Settings Appearance