From c1e4c591fe5d8aeb8469a628ea35dde151b48ae7 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 31 Oct 2021 17:12:26 +0100 Subject: [PATCH] Limit subject length in headers to 255 characters --- app/src/main/res/layout/include_message_compact.xml | 1 + app/src/main/res/layout/include_message_normal.xml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/res/layout/include_message_compact.xml b/app/src/main/res/layout/include_message_compact.xml index 3516d7c789..9b22ae1e0b 100644 --- a/app/src/main/res/layout/include_message_compact.xml +++ b/app/src/main/res/layout/include_message_compact.xml @@ -253,6 +253,7 @@ android:layout_marginEnd="6dp" android:ellipsize="end" android:gravity="center_vertical" + android:maxLength="255" android:minHeight="21dp" android:singleLine="true" android:text="Subject" diff --git a/app/src/main/res/layout/include_message_normal.xml b/app/src/main/res/layout/include_message_normal.xml index 202bcf4684..35fee91334 100644 --- a/app/src/main/res/layout/include_message_normal.xml +++ b/app/src/main/res/layout/include_message_normal.xml @@ -174,6 +174,7 @@ android:layout_marginTop="6dp" android:layout_marginEnd="6dp" android:gravity="center_vertical" + android:maxLength="255" android:minHeight="24dp" android:text="Subject" android:textAppearance="@style/TextAppearance.AppCompat.Medium"