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

@@ -240,7 +240,6 @@ fun ReaderMenu(
} }
} }
LaunchedEffect(hasFocus) { LaunchedEffect(hasFocus) {
if (!hasFocus) { if (!hasFocus) {
focusRequester.requestFocus() focusRequester.requestFocus()
@@ -472,7 +471,6 @@ fun ReaderLayout(
} }
} }
if (continuous) { if (continuous) {
ContinuousReader( ContinuousReader(
modifier = readerModifier, modifier = readerModifier,

View File

@@ -261,7 +261,7 @@ class ReaderMenuViewModel @Inject constructor(
private suspend fun initChapters( private suspend fun initChapters(
mangaId: Long, mangaId: Long,
chapterIndex: Int, chapterIndex: Int,
fromMenuButton: Boolean = true, fromMenuButton: Boolean = true
) { ) {
// resetValues() // resetValues()
val (chapter, pages) = coroutineScope { val (chapter, pages) = coroutineScope {

View File

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