properly handle file sorting by size when expected
This commit is contained in:
parent
2fb89645e5
commit
3e43ca3aec
|
@ -190,7 +190,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||
return
|
||||
}
|
||||
|
||||
val isSortingBySize = context!!.config.sorting and SORT_BY_SIZE != 0
|
||||
val isSortingBySize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0
|
||||
if (files != null) {
|
||||
for (file in files) {
|
||||
val fileDirItem = getFileDirItemFromFile(file, isSortingBySize)
|
||||
|
|
|
@ -106,7 +106,7 @@ class RootHelpers(val activity: Activity) {
|
|||
}
|
||||
}
|
||||
|
||||
if (activity.config.sorting and SORT_BY_SIZE == 0) {
|
||||
if (activity.config.getFolderSorting(path) and SORT_BY_SIZE == 0) {
|
||||
callback(path, files)
|
||||
} else {
|
||||
getFileSizes(files, path, callback)
|
||||
|
|
Loading…
Reference in New Issue