matching source with SY

This commit is contained in:
Cuong-Tran 2024-10-18 10:18:40 +07:00
parent 32f895d813
commit 721229b90e
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
4 changed files with 9 additions and 13 deletions

View file

@ -8,11 +8,11 @@ import java.util.Properties
plugins {
id("mihon.android.application")
id("mihon.android.application.compose")
// id("com.github.zellius.shortcut-helper")
kotlin("plugin.parcelize")
kotlin("plugin.serialization")
id("com.github.ben-manes.versions")
// id("com.github.zellius.shortcut-helper")
alias(libs.plugins.aboutLibraries)
id("com.github.ben-manes.versions")
}
if (gradle.startParameter.taskRequests.toString().contains("Standard")) {

View file

@ -117,7 +117,6 @@ fun FeedScreen(
) { index, item ->
// KMK <--
GlobalSearchResultItem(
modifier = Modifier.animateItem(),
title = item.title,
subtitle = item.subtitle,
onLongClick = {
@ -136,6 +135,7 @@ fun FeedScreen(
onClickSource(item.source)
}
},
modifier = Modifier.animateItem(),
) {
FeedItem(
item = item,

View file

@ -319,8 +319,10 @@ private fun ChapterNavigatorPreview() {
currentPage = currentPage,
totalPages = 10,
onSliderValueChange = { currentPage = it },
// SY -->
currentPageText = "1",
isVerticalSlider = false,
currentPageText = "currentPageText",
// SY <--
)
}
}

View file

@ -137,14 +137,8 @@ class MangaScreen(
val context = LocalContext.current
val scope = rememberCoroutineScope()
val lifecycleOwner = LocalLifecycleOwner.current
val screenModel =
rememberScreenModel {
MangaScreenModel(
context, lifecycleOwner.lifecycle, mangaId, fromSource,
// SY -->
smartSearchConfig != null,
// SY <--
)
val screenModel = rememberScreenModel {
MangaScreenModel(context, lifecycleOwner.lifecycle, mangaId, fromSource, smartSearchConfig != null)
}
val state by screenModel.state.collectAsStateWithLifecycle()