updated log list not being in proper order

This commit is contained in:
deniscerri 2023-03-14 15:40:07 +01:00
parent d5824f59d3
commit 4d959a0b05
No known key found for this signature in database
GPG key ID: 95C43D517D830350

View file

@ -102,7 +102,7 @@ class DownloadLogListActivity : AppCompatActivity(), DownloadLogsAdapter.OnItemC
fileList = mutableListOf()
try{
fileList.addAll(logFolder.listFiles()!!)
fileList.reverse()
fileList.sortByDescending { it.name }
}catch (ignored: Exception){}
downloadLogAdapter.submitList(fileList.toList())
runOnUiThread{