use collections sort to support older apis

This commit is contained in:
tobiasKaminsky 2017-04-18 10:34:08 +02:00
parent c4e2e6a07f
commit 57d210c49f
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -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()) {