mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-03-19 21:10:18 +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) {
|
private fun setupView(view: View, conversation: Conversation) {
|
||||||
view.apply {
|
view.apply {
|
||||||
val smsDraft = context.getSmsDraft(conversation.threadId)
|
val smsDraft = context.getSmsDraft(conversation.threadId)
|
||||||
|
draft_indicator.beVisibleIf(smsDraft != null)
|
||||||
|
draft_indicator.setTextColor(adjustedPrimaryColor)
|
||||||
|
|
||||||
conversation_frame.isSelected = selectedKeys.contains(conversation.hashCode())
|
conversation_frame.isSelected = selectedKeys.contains(conversation.hashCode())
|
||||||
|
|
||||||
@ -270,10 +272,6 @@ class ConversationsAdapter(
|
|||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.9f)
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.9f)
|
||||||
}
|
}
|
||||||
|
|
||||||
draft_indicator.apply {
|
|
||||||
visibility = if (smsDraft != null) View.VISIBLE else View.GONE
|
|
||||||
}
|
|
||||||
|
|
||||||
conversation_date.apply {
|
conversation_date.apply {
|
||||||
text = conversation.date.formatDateOrTime(context, true, false)
|
text = conversation.date.formatDateOrTime(context, true, false)
|
||||||
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
setTextSize(TypedValue.COMPLEX_UNIT_PX, fontSize * 0.8f)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user