handle back button
This commit is contained in:
parent
459bbcc9bd
commit
468518bdc3
1 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package eu.kanade.tachiyomi.ui.browse.feed
|
||||
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.filled.Bookmark
|
||||
import androidx.compose.material.icons.outlined.Add
|
||||
|
|
@ -60,6 +61,14 @@ fun Screen.feedTab(
|
|||
}
|
||||
}
|
||||
|
||||
// KMK -->
|
||||
BackHandler(enabled = state.selection.isNotEmpty()) {
|
||||
when {
|
||||
state.selection.isNotEmpty() -> screenModel.clearSelection()
|
||||
}
|
||||
}
|
||||
// KMK <--
|
||||
|
||||
return TabContent(
|
||||
titleRes = SYMR.strings.feed,
|
||||
actions =
|
||||
|
|
|
|||
Loading…
Reference in a new issue