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

Commit bcc79527 authored by Yixiao Luo's avatar Yixiao Luo Committed by Android (Google) Code Review
Browse files

Merge "Check null TvInputState in setStateLocked() when logging external TV input" into main

parents 3146fcab e994f65d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1166,7 +1166,11 @@ public final class TvInputManagerService extends SystemService {
                                .EXTERNAL_TV_INPUT_EVENT__EVENT_TYPE__CONNECTION_STATE_CHANGED,
                        mOnScreenInputId, mOnScreenSessionState);
            } else if (mOnScreenInputId != null) {
                TvInputInfo currentInputInfo = userState.inputMap.get(mOnScreenInputId).info;
                TvInputState currentInputState = userState.inputMap.get(mOnScreenInputId);
                TvInputInfo currentInputInfo = null;
                if (currentInputState != null) {
                    currentInputInfo = currentInputState.info;
                }
                if (currentInputInfo != null && currentInputInfo.getHdmiDeviceInfo() != null
                        && inputId.equals(currentInputInfo.getParentId())) {
                    logExternalInputEvent(