Fixed icon and letter color for avatar in conversation

This commit is contained in:
Moez Bhatti
2018-04-03 00:37:07 -04:00
parent c8c5dd3aad
commit ea64585054
2 changed files with 7 additions and 4 deletions
@@ -73,9 +73,13 @@ class AvatarView @JvmOverloads constructor(context: Context, attrs: AttributeSet
.autoDisposable(scope())
.subscribe { color -> background.setTint(color) }
colors.textPrimaryOnTheme
.autoDisposable(scope())
.subscribe { color -> icon.setTint(color) }
colors.textPrimaryOnThemeForConversation(threadId).let { observable ->
initial.textColorObservable = observable
observable
.autoDisposable(scope())
.subscribe { color -> icon.setTint(color) }
}
clicks()
.autoDisposable(scope())