forked from upstream-mirrors/quik
Don't include default selection from adapter
This commit is contained in:
+2
-2
@@ -77,8 +77,8 @@ class BlockedMessagesPresenter @Inject constructor(
|
||||
.subscribe { selection -> newState { copy(selected = selection.size) } }
|
||||
|
||||
view.backClicked
|
||||
.withLatestFrom(view.selectionChanges) { _, selection ->
|
||||
when (selection.size) {
|
||||
.withLatestFrom(state) { _, state ->
|
||||
when (state.selected) {
|
||||
0 -> view.goBack()
|
||||
else -> view.clearSelection()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user