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 -->
/**
* Restore the categories from Json
*

View File

@ -558,6 +558,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
}
// SY -->
/**
* 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"
// SY -->
/**
* Key for group to update.
*/

View File

@ -118,8 +118,7 @@ class MigrationListScreen(private val config: MigrationProcedureConfig) : Screen
)
val onDismissRequest = { screenModel.dialog.value = null }
when
(
when (
@Suppress("NAME_SHADOWING")
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.semantics
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.fastForEach
import androidx.compose.ui.util.lerp

View File

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

View File

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

View File

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

View File

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

View File

@ -206,6 +206,7 @@ object ImageUtil {
LEFT,
}
// SY -->
/**
* 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