From f1dc6fb89c31fc32b4f05c12ddfdcff0d7355462 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Wed, 26 Apr 2017 14:58:09 +0200 Subject: [PATCH] sort order by creation date --- .../owncloud/android/ui/preview/PreviewImagePagerAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java b/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java index 4329d63ae7..f5eb0568fb 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewImagePagerAdapter.java @@ -116,7 +116,7 @@ public class PreviewImagePagerAdapter extends FragmentStatePagerAdapter { mImageFiles = mStorageManager.getVirtualFolderContent(type, true); if (type == VirtualFolderType.PHOTOS) { - mImageFiles = FileStorageUtils.sortOCFilesByDate(mImageFiles); + mImageFiles = FileStorageUtils.sortOcFolderDescDateModified(mImageFiles); } mObsoleteFragments = new HashSet();