Sort identities by creation time

This follows the principle of least surprise: the default identity
doesn't change when a new identity is created.
This commit is contained in:
akwizgran
2014-02-10 12:15:01 +00:00
parent 71a31c2a7a
commit c6ac826acd
2 changed files with 14 additions and 7 deletions

View File

@@ -62,9 +62,9 @@ implements SpinnerAdapter {
public LocalAuthorItem getItem(int position) {
if(includeAnonymous) {
if(position == 0) return ANONYMOUS;
if(position == list.size()) return ANONYMOUS;
if(position == list.size() + 1) return NEW;
return list.get(position - 1);
return list.get(position);
} else {
if(position == list.size()) return NEW;
return list.get(position);