mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-20 03:22:31 +01:00
Automatic Lint
This commit is contained in:
@@ -33,7 +33,6 @@ object Notifications {
|
||||
const val CHANNEL_LIBRARY_PROGRESS = "library_progress_channel"
|
||||
const val ID_LIBRARY_PROGRESS = -302
|
||||
|
||||
|
||||
/**
|
||||
* Notification channel and ids used for app updates.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,7 @@ class UpdateCategoryMeta @Inject constructor(private val categoryRepository: Cat
|
||||
|
||||
fun asFlow(
|
||||
category: Category,
|
||||
example: Int = category.meta.example,
|
||||
example: Int = category.meta.example
|
||||
) = flow {
|
||||
if (example != category.meta.example) {
|
||||
categoryRepository.updateCategoryMeta(
|
||||
|
||||
@@ -29,7 +29,7 @@ class UpdateGlobalMeta @Inject constructor(private val globalRepository: GlobalR
|
||||
|
||||
fun asFlow(
|
||||
globalMeta: GlobalMeta,
|
||||
example: Int = globalMeta.example,
|
||||
example: Int = globalMeta.example
|
||||
) = flow {
|
||||
if (example != globalMeta.example) {
|
||||
globalRepository.updateGlobalMeta(
|
||||
|
||||
@@ -13,4 +13,4 @@ import kotlinx.serialization.Serializable
|
||||
@Immutable
|
||||
data class GlobalMeta(
|
||||
val example: Int = 0
|
||||
)
|
||||
)
|
||||
|
||||
@@ -12,4 +12,4 @@ import kotlinx.serialization.Serializable
|
||||
data class SourceFilterData(
|
||||
val searchTerm: String?,
|
||||
val filter: List<SourceFilterChange>?
|
||||
)
|
||||
)
|
||||
|
||||
@@ -204,7 +204,7 @@ fun WideLibraryScreenContent(
|
||||
actions = {
|
||||
getActionItems(
|
||||
onToggleFiltersClick = { setShowingMenu(true) },
|
||||
onUpdateLibrary = onUpdateLibrary,
|
||||
onUpdateLibrary = onUpdateLibrary
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user