Minor cleanup
This commit is contained in:
@@ -10,11 +10,11 @@ fun ReaderTopBar(
|
|||||||
mangaTitle: String?,
|
mangaTitle: String?,
|
||||||
chapterTitle: String?,
|
chapterTitle: String?,
|
||||||
navigateUp: () -> Unit,
|
navigateUp: () -> Unit,
|
||||||
//bookmarked: Boolean,
|
// bookmarked: Boolean,
|
||||||
//onToggleBookmarked: () -> Unit,
|
// onToggleBookmarked: () -> Unit,
|
||||||
//onOpenInWebView: (() -> Unit)?,
|
// onOpenInWebView: (() -> Unit)?,
|
||||||
//onOpenInBrowser: (() -> Unit)?,
|
// onOpenInBrowser: (() -> Unit)?,
|
||||||
//onShare: (() -> Unit)?,
|
// onShare: (() -> Unit)?,
|
||||||
modifier: Modifier = Modifier,
|
modifier: Modifier = Modifier,
|
||||||
) {
|
) {
|
||||||
AppBar(
|
AppBar(
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ data class LibraryItem(
|
|||||||
* @return true if the manga matches the query, false otherwise.
|
* @return true if the manga matches the query, false otherwise.
|
||||||
*/
|
*/
|
||||||
fun matches(constraint: String): Boolean {
|
fun matches(constraint: String): Boolean {
|
||||||
val sourceName by lazy { sourceManager.getOrStub(libraryManga.manga.source).getNameForMangaInfo(null) }
|
val sourceName by lazy { sourceManager.getOrStub(libraryManga.manga.source).getNameForMangaInfo() }
|
||||||
if (constraint.startsWith("id:", true)) {
|
if (constraint.startsWith("id:", true)) {
|
||||||
return id == constraint.substringAfter("id:").toLongOrNull()
|
return id == constraint.substringAfter("id:").toLongOrNull()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1041,7 +1041,7 @@ class MangaScreenModel(
|
|||||||
downloadProgress = activeDownload?.progress ?: 0,
|
downloadProgress = activeDownload?.progress ?: 0,
|
||||||
selected = chapter.id in selectedChapterIds,
|
selected = chapter.id in selectedChapterIds,
|
||||||
// SY -->
|
// SY -->
|
||||||
sourceName = source?.getNameForMangaInfo(null, enabledLanguages = enabledLanguages),
|
sourceName = source?.getNameForMangaInfo(enabledLanguages = enabledLanguages),
|
||||||
showScanlator = !isExhManga,
|
showScanlator = !isExhManga,
|
||||||
// SY <--
|
// SY <--
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user