From a34be2761126f2150a012172c313d39cacc9c452 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 20 Mar 2022 09:27:37 +0100 Subject: [PATCH] Update ReadMarker debug Change-Id: I0b450ab4167e33e7c48ce0b8bac3e74973cf3fe2 --- .../helper/TimelineVisibilityStateChangedListeners.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineVisibilityStateChangedListeners.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineVisibilityStateChangedListeners.kt index d75f9485ec..630cd4427e 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineVisibilityStateChangedListeners.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/helper/TimelineVisibilityStateChangedListeners.kt @@ -17,6 +17,8 @@ package im.vector.app.features.home.room.detail.timeline.helper import com.airbnb.epoxy.VisibilityState +import de.spiritcroc.matrixsdk.util.DbgUtil +import de.spiritcroc.matrixsdk.util.Dimber import im.vector.app.core.epoxy.VectorEpoxyModel import im.vector.app.features.home.room.detail.timeline.TimelineEventController import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent @@ -24,7 +26,10 @@ import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent class ReadMarkerVisibilityStateChangedListener(private val callback: TimelineEventController.Callback?) : VectorEpoxyModel.OnVisibilityStateChangedListener { + private val rmDimber = Dimber("ReadMarkerDbg", DbgUtil.DBG_READ_MARKER) + override fun onVisibilityStateChanged(visibilityState: Int) { + rmDimber.i { "onVisibilityChanged: $visibilityState" } if (visibilityState in listOf(VisibilityState.VISIBLE, VisibilityState.FOCUSED_VISIBLE, VisibilityState.UNFOCUSED_VISIBLE,