mirror of
https://github.com/moparisthebest/open-keychain
synced 2025-02-01 07:30:18 -05:00
put main original id at the top
This commit is contained in:
parent
034deaacba
commit
c3c311152e
@ -179,7 +179,10 @@ public class SectionView extends LinearLayout implements OnClickListener, Editor
|
|||||||
if (mType == Id.type.user_id) {
|
if (mType == Id.type.user_id) {
|
||||||
for (int i = 0; i < mEditors.getChildCount(); ++i) {
|
for (int i = 0; i < mEditors.getChildCount(); ++i) {
|
||||||
UserIdEditor editor = (UserIdEditor) mEditors.getChildAt(i);
|
UserIdEditor editor = (UserIdEditor) mEditors.getChildAt(i);
|
||||||
orig.add(editor.getOriginalID());
|
if (editor.isMainUserId())
|
||||||
|
orig.add(0, editor.getOriginalID());
|
||||||
|
else
|
||||||
|
orig.add(editor.getOriginalID());
|
||||||
}
|
}
|
||||||
return orig;
|
return orig;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user