Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bed6e3be authored by Adrian Roos's avatar Adrian Roos
Browse files

Always put current user first in user switchers

Bug: 16896343
Change-Id: I2de19b3af5d5b2eed1347b41bccf9c9dc87c2e5b
parent 0e7d3765
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -158,8 +158,9 @@ public class UserSwitcherController {
                            picture = BitmapHelper.createCircularClip(
                                    picture, avatarSize, avatarSize);
                        }
                        records.add(new UserRecord(info, picture, false /* isGuest */, isCurrent,
                                false /* isAddUser */, false /* isRestricted */));
                        int index = isCurrent ? 0 : records.size();
                        records.add(index, new UserRecord(info, picture, false /* isGuest */,
                                isCurrent, false /* isAddUser */, false /* isRestricted */));
                    }
                }

@@ -182,7 +183,8 @@ public class UserSwitcherController {
                                    false /* isAddUser */, createIsRestricted));
                        }
                    } else {
                        records.add(guestRecord);
                        int index = guestRecord.isCurrent ? 0 : records.size();
                        records.add(index, guestRecord);
                    }
                }