SpotlessApply

This commit is contained in:
Jobobby04 2025-05-24 20:12:38 -04:00
parent 649a19ec57
commit ddffe71a22
9 changed files with 9 additions and 7 deletions

View File

@ -458,6 +458,7 @@ class MangaRestorer(
} }
// SY --> // SY -->
/** /**
* Restore the categories from Json * Restore the categories from Json
* *

View File

@ -558,6 +558,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
} }
// SY --> // SY -->
/** /**
* filter all follows from Mangadex and only add reading or rereading manga to library * filter all follows from Mangadex and only add reading or rereading manga to library
*/ */
@ -734,6 +735,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
private const val KEY_TARGET = "target" private const val KEY_TARGET = "target"
// SY --> // SY -->
/** /**
* Key for group to update. * Key for group to update.
*/ */

View File

@ -118,8 +118,7 @@ class MigrationListScreen(private val config: MigrationProcedureConfig) : Screen
) )
val onDismissRequest = { screenModel.dialog.value = null } val onDismissRequest = { screenModel.dialog.value = null }
when when (
(
@Suppress("NAME_SHADOWING") @Suppress("NAME_SHADOWING")
val dialog = dialog val dialog = dialog
) { ) {

View File

@ -35,9 +35,6 @@ import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.contentDescription
import androidx.compose.ui.semantics.semantics import androidx.compose.ui.semantics.semantics
import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.unit.dp
import androidx.compose.ui.util.fastFilter import androidx.compose.ui.util.fastFilter
import androidx.compose.ui.util.fastForEach import androidx.compose.ui.util.fastForEach
import androidx.compose.ui.util.lerp import androidx.compose.ui.util.lerp

View File

@ -1242,6 +1242,7 @@ class LibraryScreenModel(
} }
// SY --> // SY -->
/** Returns first unread chapter of a manga */ /** Returns first unread chapter of a manga */
suspend fun getFirstUnread(manga: Manga): Chapter? { suspend fun getFirstUnread(manga: Manga): Chapter? {
return getNextChapters.await(manga.id).firstOrNull() return getNextChapters.await(manga.id).firstOrNull()

View File

@ -470,6 +470,7 @@ class MangaScreen(
} }
// SY --> // SY -->
/** /**
* Initiates source migration for the specific manga. * Initiates source migration for the specific manga.
*/ */

View File

@ -42,6 +42,7 @@ class PagerViewerAdapter(private val viewer: PagerViewer) : ViewPagerAdapter() {
var currentChapter: ReaderChapter? = null var currentChapter: ReaderChapter? = null
// SY --> // SY -->
/** Page used to start the shifted pages */ /** Page used to start the shifted pages */
var pageToShift: ReaderPage? = null var pageToShift: ReaderPage? = null

View File

@ -50,8 +50,7 @@ class MetadataViewScreen(private val mangaId: Long, private val sourceId: Long)
) )
}, },
) { paddingValues -> ) { paddingValues ->
when when (
(
@Suppress("NAME_SHADOWING") @Suppress("NAME_SHADOWING")
val state = state val state = state
) { ) {

View File

@ -206,6 +206,7 @@ object ImageUtil {
LEFT, LEFT,
} }
// SY --> // SY -->
/** /**
* Split the image into left and right parts, then merge them into a * Split the image into left and right parts, then merge them into a
* new image with added center padding scaled relative to the height of the display view * new image with added center padding scaled relative to the height of the display view