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

Commit aa6e09e7 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Always put current user first in user switchers" into lmp-dev

parents caab40df bed6e3be
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);
                    }
                }