mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user