properly handle file sorting by size when expected

This commit is contained in:
tibbi 2019-03-24 22:42:38 +01:00
parent 2fb89645e5
commit 3e43ca3aec
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)