Automatic Lint

This commit is contained in:
Syer10
2022-12-31 19:33:05 +00:00
parent 1f2b8123ea
commit 3fe87f0c7b
3 changed files with 4 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ fun ReaderMenu(
Key.Spacebar -> vm.navigate(Navigation.NEXT)
else -> false
}
}
}
) {
Crossfade(state to chapter) { (state, chapter) ->
if (state is ReaderChapter.State.Loaded && chapter != null) {
@@ -240,7 +240,6 @@ fun ReaderMenu(
}
}
LaunchedEffect(hasFocus) {
if (!hasFocus) {
focusRequester.requestFocus()
@@ -472,7 +471,6 @@ fun ReaderLayout(
}
}
if (continuous) {
ContinuousReader(
modifier = readerModifier,

View File

@@ -261,9 +261,9 @@ class ReaderMenuViewModel @Inject constructor(
private suspend fun initChapters(
mangaId: Long,
chapterIndex: Int,
fromMenuButton: Boolean = true,
fromMenuButton: Boolean = true
) {
//resetValues()
// resetValues()
val (chapter, pages) = coroutineScope {
val getCurrentChapter = async {
val chapter = getReaderChapter(chapterIndex) ?: return@async null

View File

@@ -50,7 +50,7 @@ actual class ReaderLauncher {
onCloseRequest = ::exitApplication,
title = "${BuildKonfig.NAME} - Reader",
icon = icon,
state = windowState,
state = windowState
) {
ReaderMenu(
chapterIndex = chapterIndex,