AmazeFileManager
AmazeFileManager copied to clipboard
App Manager sort by size not working
When trying to sort apps by size ascending or descending it sorts them by name ascending
Hi,
In AppsList.java, line 199 to 203 :
a.add(new Layoutelements(new BitmapDrawable(getActivity().getResources(),
BitmapFactory.decodeResource(getActivity().getResources(), R.drawable.ic_doc_apk_grid)),
object.applicationInfo.loadLabel(p).toString(), object.applicationInfo.publicSourceDir,
object.packageName, object.versionName, Futils.readableFileSize(f.length()),f.length(), false,
f.lastModified()+"", false));
object.versionName is put as LayoutElement.symlink. Any reason of that? I think it will be better to put the apk path stored in 'object.applicationInfo.publicSourceDir', like this, applications will be sort as files (FileListStorer.java line 74).
Modif tested on 3.1.2 b6 and worked :

@altintorr please create a pull request if you fixed it! Will be appreciated (: