mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Automatic Lint
This commit is contained in:
@@ -98,9 +98,9 @@ class UpdatesScreenViewModel @Inject constructor(
|
||||
items
|
||||
.flatMap { (date, updates) ->
|
||||
listOf(UpdatesUI.Header(date.toString())).dropWhile { it.date == lastUpdateDate } +
|
||||
updates
|
||||
.sortedByDescending { it.chapter.fetchedAt }
|
||||
.map { UpdatesUI.Item(it) }
|
||||
updates
|
||||
.sortedByDescending { it.chapter.fetchedAt }
|
||||
.map { UpdatesUI.Item(it) }
|
||||
}
|
||||
).toImmutableList()
|
||||
|
||||
@@ -140,7 +140,7 @@ class UpdatesScreenViewModel @Inject constructor(
|
||||
.filterIsInstance<UpdatesUI.Item>()
|
||||
.find { (chapterDownloadItem) ->
|
||||
chapterDownloadItem.chapter.mangaId == chapter.mangaId &&
|
||||
chapterDownloadItem.chapter.index == chapter.index
|
||||
chapterDownloadItem.chapter.index == chapter.index
|
||||
}
|
||||
?.chapterDownloadItem
|
||||
?.deleteDownload(deleteChapterDownload)
|
||||
@@ -153,7 +153,7 @@ class UpdatesScreenViewModel @Inject constructor(
|
||||
.filterIsInstance<UpdatesUI.Item>()
|
||||
.find { (chapterDownloadItem) ->
|
||||
chapterDownloadItem.chapter.mangaId == chapter.mangaId &&
|
||||
chapterDownloadItem.chapter.index == chapter.index
|
||||
chapterDownloadItem.chapter.index == chapter.index
|
||||
}
|
||||
?.chapterDownloadItem
|
||||
?.stopDownloading(stopChapterDownload)
|
||||
@@ -168,4 +168,4 @@ class UpdatesScreenViewModel @Inject constructor(
|
||||
sealed class UpdatesUI {
|
||||
data class Item(val chapterDownloadItem: ChapterDownloadItem) : UpdatesUI()
|
||||
data class Header(val date: String) : UpdatesUI()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,6 @@ fun UpdatesScreenContent(
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
VerticalScrollbar(
|
||||
|
||||
Reference in New Issue
Block a user