mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Update ReadMarker debug
Change-Id: I0b450ab4167e33e7c48ce0b8bac3e74973cf3fe2
This commit is contained in:
parent
caa6a9c19f
commit
a34be27611
1 changed files with 5 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue