Skip to content

Commit dfbb228

Browse files
committed
use proper sorting at OTG files
1 parent 9d045c3 commit dfbb228

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/ItemsFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
176176
if (activity?.isDestroyed == false && activity?.isFinishing == false) {
177177
val config = context!!.config
178178
if (context!!.isPathOnOTG(path) && config.OTGTreeUri.isNotEmpty()) {
179-
val getProperFileSize = config.sorting and SORT_BY_SIZE != 0
179+
val getProperFileSize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0
180180
context!!.getOTGItems(path, config.shouldShowHidden, getProperFileSize) {
181181
callback(path, getListItemsFromFileDirItems(it))
182182
}

0 commit comments

Comments
 (0)