mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-04-16 03:07:26 +02:00
use proper sorting at OTG files
This commit is contained in:
parent
9d045c30d8
commit
dfbb2288d4
@ -176,7 +176,7 @@ class ItemsFragment : Fragment(), ItemOperationsListener, Breadcrumbs.Breadcrumb
|
|||||||
if (activity?.isDestroyed == false && activity?.isFinishing == false) {
|
if (activity?.isDestroyed == false && activity?.isFinishing == false) {
|
||||||
val config = context!!.config
|
val config = context!!.config
|
||||||
if (context!!.isPathOnOTG(path) && config.OTGTreeUri.isNotEmpty()) {
|
if (context!!.isPathOnOTG(path) && config.OTGTreeUri.isNotEmpty()) {
|
||||||
val getProperFileSize = config.sorting and SORT_BY_SIZE != 0
|
val getProperFileSize = context!!.config.getFolderSorting(currentPath) and SORT_BY_SIZE != 0
|
||||||
context!!.getOTGItems(path, config.shouldShowHidden, getProperFileSize) {
|
context!!.getOTGItems(path, config.shouldShowHidden, getProperFileSize) {
|
||||||
callback(path, getListItemsFromFileDirItems(it))
|
callback(path, getListItemsFromFileDirItems(it))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user