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

Commit 41e2adee authored by Sherry Huang's avatar Sherry Huang Committed by Android (Google) Code Review
Browse files

Merge "TIF: update condition in startUser" into main

parents 02177e23 821b4a34
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -608,10 +608,9 @@ public final class TvInputManagerService extends SystemService {
                // user already started
                return;
            }
            UserInfo userInfo = mUserManager.getUserInfo(userId);
            UserInfo parentInfo = mUserManager.getProfileParent(userId);
            // User is guaranteed to be a profile here as we have checked before calling startUser
            if (parentInfo != null && parentInfo.id == mCurrentUserId) {
            if (parentInfo != null) {
                int prevUserId = mCurrentUserId;
                mCurrentUserId = userId;
                // only the children of the current user can be started in background