Skip to content

Commit

Permalink
Merge pull request #166 from seelchen/bugfix/growing-apps-sorting
Browse files Browse the repository at this point in the history
Sort growing apps by change in size
  • Loading branch information
VishalNehra committed Jan 11, 2024
2 parents c6378a3 + 1588b60 commit d8149d2
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -2021,8 +2021,12 @@ class FilesViewModel(val applicationContext: Application) :
}
}

val result = priorityQueue.reversed()
largeSizeDiffAppsLiveData?.postValue(result.toMutableList())
val result = mutableListOf<MediaFileInfo>()
while (priorityQueue.isNotEmpty()) {
result.add(priorityQueue.remove())
}

largeSizeDiffAppsLiveData?.postValue(result.asReversed())
}
}

Expand Down

0 comments on commit d8149d2

Please sign in to comment.