mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Started working on app shortcuts
This commit is contained in:
parent
b129832358
commit
165146385d
2 changed files with 37 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue