Merge "TvInputManagerService patch"

am: 11e60c0824

Change-Id: I32d0deab39df9a1ec2a2aaa012fccca307053db2
This commit is contained in:
Baohe.Wang
2019-08-20 17:14:51 -07:00
committed by android-build-merger

View File

@@ -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;