mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-04-10 00:11:14 +02:00
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
|
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) {
|
if (files != null) {
|
||||||
for (file in files) {
|
for (file in files) {
|
||||||
val fileDirItem = getFileDirItemFromFile(file, isSortingBySize)
|
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)
|
callback(path, files)
|
||||||
} else {
|
} else {
|
||||||
getFileSizes(files, path, callback)
|
getFileSizes(files, path, callback)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user