Started working on app shortcuts

This commit is contained in:
Michael Schättgen 2016-11-03 22:03:34 +01:00
parent b129832358
commit 165146385d
2 changed files with 37 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import net.sqlcipher.database.SQLiteDatabase;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import me.impy.aegis.KeyProfile;
@ -67,7 +68,12 @@ public class Database {
list.add(profile);
}
Collections.sort(list, (a, b) -> b.compareTo(a));
Collections.sort(list, new Comparator<KeyProfile>() {
@Override
public int compare(KeyProfile a, KeyProfile b) {
return b.compareTo(a);
}
});
return list;
} finally {
cursor.close();