Pinned events : banner goes backward instead of forward
This commit is contained in:
parent
04995cb26c
commit
49f4526338
2 changed files with 4 additions and 4 deletions
|
|
@ -79,10 +79,10 @@ class PinnedMessagesBannerPresenter @Inject constructor(
|
|||
fun handleEvent(event: PinnedMessagesBannerEvents) {
|
||||
when (event) {
|
||||
is PinnedMessagesBannerEvents.MoveToNextPinned -> {
|
||||
if (currentPinnedMessageIndex < pinnedItems.size - 1) {
|
||||
currentPinnedMessageIndex++
|
||||
if (currentPinnedMessageIndex > 0) {
|
||||
currentPinnedMessageIndex--
|
||||
} else {
|
||||
currentPinnedMessageIndex = 0
|
||||
currentPinnedMessageIndex = pinnedItems.size - 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ jsoup = "org.jsoup:jsoup:1.18.1"
|
|||
appyx_core = { module = "com.bumble.appyx:core", version.ref = "appyx" }
|
||||
molecule-runtime = "app.cash.molecule:molecule-runtime:2.0.0"
|
||||
timber = "com.jakewharton.timber:timber:5.0.1"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.37"
|
||||
matrix_sdk = "org.matrix.rustcomponents:sdk-android:0.2.38"
|
||||
matrix_richtexteditor = { module = "io.element.android:wysiwyg", version.ref = "wysiwyg" }
|
||||
matrix_richtexteditor_compose = { module = "io.element.android:wysiwyg-compose", version.ref = "wysiwyg" }
|
||||
sqldelight-driver-android = { module = "app.cash.sqldelight:android-driver", version.ref = "sqldelight" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue