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( ...@@ -210,6 +210,7 @@ class MessageAdapter(
.placeholder(message.fallbackDrawable) .placeholder(message.fallbackDrawable)
.into(avatarView) .into(avatarView)
} else { } else {
GlideApp.with(itemView).clear(avatarView)
avatarView.setImageDrawable(message.fallbackDrawable) avatarView.setImageDrawable(message.fallbackDrawable)
} }
} }
......
...@@ -235,7 +235,6 @@ class MessageListFragment : ServiceBoundFragment() { ...@@ -235,7 +235,6 @@ class MessageListFragment : ServiceBoundFragment() {
messageList.adapter = adapter messageList.adapter = adapter
messageList.layoutManager = linearLayoutManager messageList.layoutManager = linearLayoutManager
messageList.itemAnimator = null messageList.itemAnimator = null
messageList.setItemViewCacheSize(20)
val senderColors = requireContext().theme.styledAttributes( val senderColors = requireContext().theme.styledAttributes(
R.attr.senderColor0, R.attr.senderColor1, R.attr.senderColor2, R.attr.senderColor3, R.attr.senderColor0, R.attr.senderColor1, R.attr.senderColor2, R.attr.senderColor3,
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
android:id="@+id/time_left" android:id="@+id/time_left"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal" android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginRight="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
......
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
android:id="@+id/time_left" android:id="@+id/time_left"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal" android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginRight="@dimen/message_horizontal"
android:fontFamily="monospace"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace"
tools:text="@sample/messages.json/data/time" /> tools:text="@sample/messages.json/data/time" />
<Space <Space
......
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
android:id="@+id/time_left" android:id="@+id/time_left"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="top"
android:layout_marginEnd="@dimen/message_horizontal" android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal" android:layout_marginRight="@dimen/message_horizontal"
android:fontFamily="monospace" android:textColor="?attr/colorForegroundSecondary"
android:textColor="?attr/colorForegroundNotice" android:typeface="monospace"
tools:text="@sample/messages.json/data/time" /> tools:text="@sample/messages.json/data/time" />
<Space <Space
......
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
android:id="@+id/time_left" android:id="@+id/time_left"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/message_horizontal" android:layout_gravity="top"
android:layout_marginStart="@dimen/message_horizontal" android:layout_marginEnd="@dimen/message_horizontal"
android:layout_marginRight="@dimen/message_horizontal"
android:textColor="?attr/colorForegroundSecondary" android:textColor="?attr/colorForegroundSecondary"
android:typeface="monospace" android:typeface="monospace"
tools:text="@sample/messages.json/data/time" /> 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