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

Commit c63aaf70 authored by Austin Shin's avatar Austin Shin Committed by Automerger Merge Worker
Browse files

Merge "Fix onStateChanged issue." am: 61c3d559 am: f3b6f05c am: 69e671c6

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1822992

Change-Id: I8603b40d2bc693c22e212f1c5a832fcc0d25a458
parents b78a0484 69e671c6
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1266,12 +1266,14 @@ class TvInputHardwareManager implements TvInputHal.Callback {
                    if (inputId != null) {
                        if (connection.updateCableConnectionStatusLocked(cableConnectionStatus)) {
                            if (previousCableConnectionStatus != connection.getInputStateLocked()) {
                                mListener.onStateChanged(inputId, connection.getInputStateLocked());
                                mHandler.obtainMessage(ListenerHandler.STATE_CHANGED,
                                    connection.getInputStateLocked(), 0, inputId).sendToTarget();
                            }
                        } else {
                            if ((previousConfigsLength == 0)
                                    != (connection.getConfigsLengthLocked() == 0)) {
                                mListener.onStateChanged(inputId, connection.getInputStateLocked());
                                mHandler.obtainMessage(ListenerHandler.STATE_CHANGED,
                                    connection.getInputStateLocked(), 0, inputId).sendToTarget();
                            }
                        }
                    }