From bc6d12a873324cb71774c89e0e9e8bf888efde2c Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Sat, 13 Jan 2024 18:26:42 +0800 Subject: [PATCH] Fix typo --- .../main/kotlin/com/hippo/ehviewer/download/DownloadManager.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/hippo/ehviewer/download/DownloadManager.kt b/app/src/main/kotlin/com/hippo/ehviewer/download/DownloadManager.kt index 4a048ee3e..cbba05878 100644 --- a/app/src/main/kotlin/com/hippo/ehviewer/download/DownloadManager.kt +++ b/app/src/main/kotlin/com/hippo/ehviewer/download/DownloadManager.kt @@ -443,8 +443,7 @@ object DownloadManager : OnSpiderListener { val list = allInfoList.slice(range) val limit = allInfoList.size - 1 list.zip(range).forEach { it.first.position = limit - it.second } - val label = allInfoList[fromPosition].label - getInfoListForLabel(label)!!.sortByPositionDescending() + getInfoListForLabel(info.label)!!.sortByPositionDescending() return list }