File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/src/main/java/com/infomaniak/mail/ui/main/thread Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -350,18 +350,18 @@ class ThreadFragment : Fragment() {
350
350
mainViewModel.toggleLightThemeForMessage.observe(viewLifecycleOwner, threadAdapter::toggleLightMode)
351
351
}
352
352
353
- private fun observeThreadLive () = with (binding ) {
353
+ private fun observeThreadLive () = with (threadViewModel ) {
354
354
355
- threadViewModel. threadLive.observe(viewLifecycleOwner) { thread ->
355
+ threadLive.observe(viewLifecycleOwner) { thread ->
356
356
357
357
if (thread == null ) {
358
358
twoPaneViewModel.closeThread()
359
359
return @observe
360
360
}
361
361
362
- threadSubject.movementMethod = LinkMovementMethod .getInstance()
362
+ binding. threadSubject.movementMethod = LinkMovementMethod .getInstance()
363
363
364
- iconFavorite.apply {
364
+ binding. iconFavorite.apply {
365
365
setIconResource(if (thread.isFavorite) R .drawable.ic_star_filled else R .drawable.ic_star)
366
366
val color = if (thread.isFavorite) {
367
367
context.getColor(R .color.favoriteYellow)
You can’t perform that action at this time.
0 commit comments