Skip to content
Snippets Groups Projects
Commit 005d4276 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Minor bugfixes

parent d17948a4
No related branches found
No related tags found
No related merge requests found
......@@ -210,6 +210,7 @@ class MessageAdapter(
.placeholder(message.fallbackDrawable)
.into(avatarView)
} else {
GlideApp.with(itemView).clear(avatarView)
avatarView.setImageDrawable(message.fallbackDrawable)
}
}
......
......@@ -235,7 +235,6 @@ class MessageListFragment : ServiceBoundFragment() {
messageList.adapter = adapter
messageList.layoutManager = linearLayoutManager
messageList.itemAnimator = null
messageList.setItemViewCacheSize(20)
val senderColors = requireContext().theme.styledAttributes(
R.attr.senderColor0, R.attr.senderColor1, R.attr.senderColor2, R.attr.senderColor3,
......
......@@ -17,6 +17,7 @@
android:id="@+id/time_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary"
......
......@@ -17,10 +17,11 @@
android:id="@+id/time_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal"
android:fontFamily="monospace"
android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace"
tools:text="@sample/messages.json/data/time" />
<Space
......
......@@ -17,10 +17,11 @@
android:id="@+id/time_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal"
android:fontFamily="monospace"
android:textColor="?attr/colorForegroundNotice"
android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace"
tools:text="@sample/messages.json/data/time" />
<Space
......
......@@ -17,8 +17,9 @@
android:id="@+id/time_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/message_horizontal"
android:layout_marginStart="@dimen/message_horizontal"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace"
tools:text="@sample/messages.json/data/time" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment