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

Commit c88f1916 authored by Ji-Hwan Lee's avatar Ji-Hwan Lee
Browse files

TIF: Fix invalid use of serviceStateMap.get()

Change-Id: Ic43ac2697ed459a105e62c81e8cb6d0fb8ff6dd0
parent 23a0f051
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -745,7 +745,7 @@ public final class TvInputManagerService extends SystemService {
    private void setStateLocked(String inputId, int state, int userId) {
        UserState userState = getUserStateLocked(userId);
        TvInputState inputState = userState.inputMap.get(inputId);
        ServiceState serviceState = userState.serviceStateMap.get(inputId);
        ServiceState serviceState = userState.serviceStateMap.get(inputState.mInfo.getComponent());
        int oldState = inputState.mState;
        inputState.mState = state;
        if (serviceState != null && serviceState.mService == null