AmazeFileManager icon indicating copy to clipboard operation
AmazeFileManager copied to clipboard

App Manager sort by size not working

Open UziTech opened this issue 10 years ago • 2 comments

When trying to sort apps by size ascending or descending it sorts them by name ascending

UziTech avatar Aug 09 '16 13:08 UziTech

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 : phone

altintorr avatar Dec 03 '16 10:12 altintorr

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

VishalNehra avatar Dec 04 '16 10:12 VishalNehra