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

Commit a02cf979 authored by Baohe.Wang's avatar Baohe.Wang Committed by android-build-merger
Browse files

Merge "TvInputManagerService patch" am: 11e60c08 am: 2891b74a am: d710ca39 am: d066d5b7

am: 99d3e083

Change-Id: Ifa0a11d6d40a79d02dd73a2cf7e4df954f5b96b3
parents 63d076c7 99d3e083
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -842,6 +842,10 @@ public final class TvInputManagerService extends SystemService {
    private void setStateLocked(String inputId, int state, int userId) {
        UserState userState = getOrCreateUserStateLocked(userId);
        TvInputState inputState = userState.inputMap.get(inputId);
        if (inputState == null) {
            Slog.e(TAG, "failed to setStateLocked - unknown input id " + inputId);
            return;
        }
        ServiceState serviceState = userState.serviceStateMap.get(inputState.info.getComponent());
        int oldState = inputState.state;
        inputState.state = state;