Răsfoiți Sursa

Sort uploads: the latest the first shown

masensio 9 ani în urmă
părinte
comite
8c5b1e6e47

+ 2 - 1
src/com/owncloud/android/ui/adapter/ExpandableUploadListAdapter.java

@@ -93,7 +93,8 @@ public class ExpandableUploadListAdapter extends BaseExpandableListAdapter imple
                 return compareUploadTime(lhs, rhs);
             }
             private int compareUploadTime(OCUpload lhs, OCUpload rhs) {
-                return rhs.getUploadTime().compareTo(lhs.getUploadTime());
+                return Long.valueOf(rhs.getOCFile().getModificationTimestamp()).
+                        compareTo(lhs.getOCFile().getModificationTimestamp());
             }
         };
         abstract public int getGroupIcon();