OSDN Git Service

TIF: fix NPE at onHdmiDeviceUpdated()
authorWonsik Kim <wonsik@google.com>
Wed, 8 Oct 2014 04:05:56 +0000 (13:05 +0900)
committerWonsik Kim <wonsik@google.com>
Wed, 8 Oct 2014 07:06:38 +0000 (16:06 +0900)
commit184a6d69b1dbab8059e4f81d5674adde8e344aa3
tree052c3bee90fc52bbcf98027db65d15dfa6017114
parent6bf67ef1ce029ad0932df647598c6fbfae375885
TIF: fix NPE at onHdmiDeviceUpdated()

The input ID of HDMI input may not be initialized at the time
HdmiDeviceEventListener.onStatusChanged() is called. Retrieve the
input ID at the time of operation instead.

Bug: 17887925
Change-Id: I7517247294a4467feb334170b19ce2a7987dc495
services/core/java/com/android/server/tv/TvInputHardwareManager.java