mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-03-19 13:00:08 +01:00
minor code cleanup + color customization fix
This commit is contained in:
parent
327b7f673a
commit
aa71a39f1b
@ -257,6 +257,8 @@ class ConversationsAdapter(
|
||||
private fun setupView(view: View, conversation: Conversation) {
|
||||
view.apply {
|
||||
val smsDraft = context.getSmsDraft(conversation.threadId)
|
||||
draft_indicator.beVisibleIf(smsDraft != null)
|
||||
draft_indicator.setTextColor(adjustedPrimaryColor)
|
||||
|
||||
conversation_frame.isSelected = selectedKeys.contains(conversation.hashCode())
|
||||
|
||||
@ -270,10 +272,6 @@ class ConversationsAdapter(
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.9f)
|
||||
}
|
||||
|
||||
draft_indicator.apply {
|
||||
visibility = if (smsDraft != null) View.VISIBLE else View.GONE
|
||||
}
|
||||
|
||||
conversation_date.apply {
|
||||
text = conversation.date.formatDateOrTime(context, true, false)
|
||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
||||
|
Loading…
x
Reference in New Issue
Block a user