mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 10:18:59 +03:00
use collections sort to support older apis
This commit is contained in:
parent
c4e2e6a07f
commit
57d210c49f
1 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ import com.owncloud.android.utils.DisplayUtils;
|
|||
import com.owncloud.android.utils.PermissionUtil;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.Set;
|
||||
import java.util.Vector;
|
||||
|
@ -220,7 +221,7 @@ public class ContactsPreferenceActivity extends FileActivity implements FileFrag
|
|||
|
||||
Vector<OCFile> backupFiles = getStorageManager().getFolderContent(backupFolder, false);
|
||||
|
||||
backupFiles.sort(new Comparator<OCFile>() {
|
||||
Collections.sort(backupFiles, new Comparator<OCFile>() {
|
||||
@Override
|
||||
public int compare(OCFile o1, OCFile o2) {
|
||||
if (o1.getModificationTimestamp() == o2.getModificationTimestamp()) {
|
||||
|
|
Loading…
Reference in a new issue