Spotless apply

This commit is contained in:
NGB-Was-Taken
2025-11-16 18:14:20 +05:45
parent 4c1124fdb0
commit 4c563122f8
11 changed files with 21 additions and 20 deletions
@@ -95,7 +95,7 @@ class SourcePreferences(
fun defaultMangaOrder() = preferenceStore.getString("default_manga_order", "")
//fun migrationSources() = preferenceStore.getString("migrate_sources", "")
// fun migrationSources() = preferenceStore.getString("migrate_sources", "")
fun smartMigration() = preferenceStore.getBoolean("smart_migrate", false)
@@ -320,7 +320,7 @@ fun ReaderAppBars(
.fillMaxWidth()
.background(backgroundColor)
.padding(horizontal = MaterialTheme.padding.small)
.windowInsetsPadding(WindowInsets.navigationBars)
.windowInsetsPadding(WindowInsets.navigationBars),
)
}
}
@@ -63,8 +63,8 @@ fun Screen.migrateSourceTab(): TabContent {
withUIContext {
navigator.push(
MigrationConfigScreen(
sourceMangas
)
sourceMangas,
),
)
}
}
@@ -200,7 +200,7 @@ object HomeScreen : Screen() {
@Composable
private fun RowScope.NavigationBarItem(
tab: eu.kanade.presentation.util.Tab,/* SY --> */
tab: eu.kanade.presentation.util.Tab, /* SY --> */
alwaysShowLabel: Boolean, /* SY <-- */
) {
val tabNavigator = LocalTabNavigator.current
@@ -183,7 +183,7 @@ class LibraryScreenModel(
),
// SY <--
getLibraryItemPreferencesFlow(),
) { (searchQuery, categories, favorites), (tracksMap, trackingFilters), /* SY --> */ (groupType, sortingMode) /* <-- SY */, itemPreferences ->
) { (searchQuery, categories, favorites), (tracksMap, trackingFilters), /* SY --> */ (groupType, sortingMode)/* <-- SY */, itemPreferences ->
val showSystemCategory = favorites.any { it.libraryManga.categories.contains(0) }
val filteredFavorites = favorites
.applyFilters(tracksMap, trackingFilters, itemPreferences)
@@ -194,12 +194,13 @@ data object LibraryTab : Tab {
.map { it.id }
// <-- SY
screenModel.clearSelection()
/* SY --> */if (selection.isNotEmpty()) { /* <-- SY */
navigator.push(MigrationConfigScreen(selection))
// SY ->>
} else {
context.toast(SYMR.strings.no_valid_entry)
}
/* SY --> */if (selection.isNotEmpty()) {
/* <-- SY */
navigator.push(MigrationConfigScreen(selection))
// SY ->>
} else {
context.toast(SYMR.strings.no_valid_entry)
}
// <-- SY
},
// SY -->
@@ -51,8 +51,8 @@ import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.Navigator
import cafe.adriel.voyager.navigator.NavigatorDisposeBehavior
import cafe.adriel.voyager.navigator.currentOrThrow
import com.google.firebase.analytics.analytics
import com.google.firebase.Firebase
import com.google.firebase.analytics.analytics
import eu.kanade.domain.base.BasePreferences
import eu.kanade.domain.source.interactor.GetIncognitoState
import eu.kanade.presentation.components.AppStateBanners
@@ -106,7 +106,6 @@ import kotlinx.collections.immutable.toImmutableList
import kotlinx.collections.immutable.toImmutableSet
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.drop
import kotlinx.coroutines.flow.filterNotNull
@@ -142,7 +141,8 @@ class ReaderActivity : BaseActivity() {
context: Context,
mangaId: Long?,
chapterId: Long?,
/* SY --> */ page: Int? = null, /* SY <-- */
/* SY --> */
page: Int? = null, /* SY <-- */
): Intent {
return Intent(context, ReaderActivity::class.java).apply {
putExtra("manga", mangaId)
@@ -95,7 +95,7 @@ class ChapterLoader(
dbChapter.name,
dbChapter.scanlator,
dbChapter.url,
/* SY --> */ manga.ogTitle, /* SY <-- */
/* SY --> */ manga.ogTitle, /* SY <-- */
manga.source,
skipCache = true,
)
@@ -1,8 +1,8 @@
package exh.log
import com.elvishew.xlog.printer.Printer
import com.google.firebase.crashlytics.crashlytics
import com.google.firebase.Firebase
import com.google.firebase.crashlytics.crashlytics
import eu.kanade.tachiyomi.BuildConfig
class CrashlyticsPrinter(private val logLevel: Int) : Printer {
@@ -96,9 +96,9 @@ actual class LocalSource(
.filter {
it.isDirectory &&
/* SY --> */ (
!it.name.orEmpty().startsWith('.') ||
allowLocalSourceHiddenFolders
) /* SY <-- */
!it.name.orEmpty().startsWith('.') ||
allowLocalSourceHiddenFolders
) /* SY <-- */
}
.distinctBy { it.name }
.filter {