Update ReadMarker debug

Change-Id: I0b450ab4167e33e7c48ce0b8bac3e74973cf3fe2
This commit is contained in:
SpiritCroc 2022-03-20 09:27:37 +01:00
parent caa6a9c19f
commit a34be27611

View file

@ -17,6 +17,8 @@
package im.vector.app.features.home.room.detail.timeline.helper package im.vector.app.features.home.room.detail.timeline.helper
import com.airbnb.epoxy.VisibilityState 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.core.epoxy.VectorEpoxyModel
import im.vector.app.features.home.room.detail.timeline.TimelineEventController import im.vector.app.features.home.room.detail.timeline.TimelineEventController
import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent 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?) : class ReadMarkerVisibilityStateChangedListener(private val callback: TimelineEventController.Callback?) :
VectorEpoxyModel.OnVisibilityStateChangedListener { VectorEpoxyModel.OnVisibilityStateChangedListener {
private val rmDimber = Dimber("ReadMarkerDbg", DbgUtil.DBG_READ_MARKER)
override fun onVisibilityStateChanged(visibilityState: Int) { override fun onVisibilityStateChanged(visibilityState: Int) {
rmDimber.i { "onVisibilityChanged: $visibilityState" }
if (visibilityState in listOf(VisibilityState.VISIBLE, if (visibilityState in listOf(VisibilityState.VISIBLE,
VisibilityState.FOCUSED_VISIBLE, VisibilityState.FOCUSED_VISIBLE,
VisibilityState.UNFOCUSED_VISIBLE, VisibilityState.UNFOCUSED_VISIBLE,