Loading services/core/java/com/android/server/tv/TvInputManagerService.java +31 −25 Original line number Diff line number Diff line Loading @@ -383,6 +383,7 @@ public final class TvInputManagerService extends SystemService { if (mCurrentUserId == userId) { return; } if (mUserStates.contains(mCurrentUserId)) { UserState userState = mUserStates.get(mCurrentUserId); List<SessionState> sessionStatesToRelease = new ArrayList<>(); for (SessionState sessionState : userState.sessionStateMap.values()) { Loading Loading @@ -415,6 +416,7 @@ public final class TvInputManagerService extends SystemService { it.remove(); } } } mCurrentUserId = userId; getOrCreateUserStateLocked(userId); Loading Loading @@ -490,6 +492,10 @@ public final class TvInputManagerService extends SystemService { userState.mainSessionToken = null; mUserStates.remove(userId); if (userId == mCurrentUserId) { switchUser(UserHandle.USER_SYSTEM); } } } Loading Loading
services/core/java/com/android/server/tv/TvInputManagerService.java +31 −25 Original line number Diff line number Diff line Loading @@ -383,6 +383,7 @@ public final class TvInputManagerService extends SystemService { if (mCurrentUserId == userId) { return; } if (mUserStates.contains(mCurrentUserId)) { UserState userState = mUserStates.get(mCurrentUserId); List<SessionState> sessionStatesToRelease = new ArrayList<>(); for (SessionState sessionState : userState.sessionStateMap.values()) { Loading Loading @@ -415,6 +416,7 @@ public final class TvInputManagerService extends SystemService { it.remove(); } } } mCurrentUserId = userId; getOrCreateUserStateLocked(userId); Loading Loading @@ -490,6 +492,10 @@ public final class TvInputManagerService extends SystemService { userState.mainSessionToken = null; mUserStates.remove(userId); if (userId == mCurrentUserId) { switchUser(UserHandle.USER_SYSTEM); } } } Loading