Lifted NestedScrollConnection to abstract Compose classes

Since it'll likely be used in every controller.
This commit is contained in:
arkon
2022-04-23 10:57:04 -04:00
parent bf0bb5aa88
commit 2d01933c28
4 changed files with 14 additions and 14 deletions
@@ -5,6 +5,7 @@ import android.view.MenuInflater
import android.view.MenuItem
import androidx.appcompat.widget.SearchView
import androidx.compose.runtime.Composable
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection
import eu.kanade.domain.chapter.model.Chapter
import eu.kanade.presentation.history.HistoryScreen
import eu.kanade.tachiyomi.R
@@ -28,9 +29,9 @@ class HistoryController : ComposeController<HistoryPresenter>(), RootController
override fun createPresenter() = HistoryPresenter()
@Composable
override fun ComposeContent() {
override fun ComposeContent(nestedScrollInterop: NestedScrollConnection) {
HistoryScreen(
composeView = binding.root,
nestedScrollInterop = nestedScrollInterop,
presenter = presenter,
onClickItem = { history ->
router.pushController(MangaController(history).withFadeTransaction())