Merge "TvInputManagerService patch" am: 11e60c0824
am: 2891b74ac3
Change-Id: I56c59fe06a753784a965f47dd0b9ff58d472b808
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user