diff --git a/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt b/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
index 0d8da3be9..eeda8cb24 100644
--- a/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
+++ b/app/src/main/java/com/keylesspalace/tusky/MainActivity.kt
@@ -27,6 +27,7 @@ import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.net.Uri
import android.os.Bundle
+import android.text.TextUtils
import android.util.Log
import android.view.KeyEvent
import android.view.Menu
@@ -463,6 +464,9 @@ class MainActivity : BottomSheetActivity(), ActionButtonActivity, HasAndroidInje
closeDrawerOnProfileListClick = true
}
+ header.currentProfileName.maxLines = 1
+ header.currentProfileName.ellipsize = TextUtils.TruncateAt.END
+
header.accountHeaderBackground.setColorFilter(getColor(R.color.headerBackgroundFilter))
header.accountHeaderBackground.setBackgroundColor(MaterialColors.getColor(header, R.attr.colorBackgroundAccent))
val animateAvatars = preferences.getBoolean("animateGifAvatars", false)
diff --git a/app/src/main/java/com/keylesspalace/tusky/components/notifications/StatusNotificationViewHolder.kt b/app/src/main/java/com/keylesspalace/tusky/components/notifications/StatusNotificationViewHolder.kt
index 402f38725..0b1d8dca4 100644
--- a/app/src/main/java/com/keylesspalace/tusky/components/notifications/StatusNotificationViewHolder.kt
+++ b/app/src/main/java/com/keylesspalace/tusky/components/notifications/StatusNotificationViewHolder.kt
@@ -137,7 +137,9 @@ internal class StatusNotificationViewHolder(
}
private fun showNotificationContent(show: Boolean) {
- binding.statusNameBar.visibility = if (show) View.VISIBLE else View.GONE
+ binding.statusDisplayName.visibility = if (show) View.VISIBLE else View.GONE
+ binding.statusUsername.visibility = if (show) View.VISIBLE else View.GONE
+ binding.statusMetaInfo.visibility = if (show) View.VISIBLE else View.GONE
binding.notificationContentWarningDescription.visibility =
if (show) View.VISIBLE else View.GONE
binding.notificationContentWarningButton.visibility =
diff --git a/app/src/main/res/layout/item_status_notification.xml b/app/src/main/res/layout/item_status_notification.xml
index d0342e2e2..95d0661da 100644
--- a/app/src/main/res/layout/item_status_notification.xml
+++ b/app/src/main/res/layout/item_status_notification.xml
@@ -1,10 +1,10 @@
-
@@ -12,7 +12,6 @@
android:id="@+id/notification_top_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
android:layout_marginTop="8dp"
android:layout_marginBottom="6dp"
android:drawablePadding="10dp"
@@ -22,130 +21,20 @@
android:paddingStart="28dp"
android:textColor="?android:textColorSecondary"
android:textSize="?attr/status_text_medium"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
tools:text="Someone favourited your status" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -153,7 +42,124 @@
android:id="@+id/notification_notification_avatar"
android:layout_width="24dp"
android:layout_height="24dp"
- android:layout_alignEnd="@id/notification_status_avatar"
- android:layout_alignBottom="@+id/notification_status_avatar" />
+ app:layout_constraintBottom_toBottomOf="@id/notification_status_avatar"
+ app:layout_constraintEnd_toEndOf="@id/notification_status_avatar" />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+