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