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

Commit e02f32b9 authored by Ying Zheng's avatar Ying Zheng Committed by Android (Google) Code Review
Browse files

Merge "Fix a calling loop for getAllUsers." into pi-dev

parents 22385d9d 9b3422a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ public final class UserManagerHelper {
     * @return All users other than user with userId.
     */
    public List<UserInfo> getAllUsersExceptUser(int userId) {
        List<UserInfo> others = getAllUsers();
        List<UserInfo> others = mUserManager.getUsers(/* excludeDying= */true);

        for (Iterator<UserInfo> iterator = others.iterator(); iterator.hasNext(); ) {
            UserInfo userInfo = iterator.next();
@@ -183,7 +183,7 @@ public final class UserManagerHelper {
        if (isHeadlessSystemUser()) {
            return getAllUsersExcludesSystemUser();
        }
        return mUserManager.getUsers(true /* excludeDying */);
        return mUserManager.getUsers(/* excludeDying= */true);
    }

    // User information accessors