KeyguardStateMonitor: Don't get IUsbRestrict service in constructor
* If boot up is "too fast" and Trust HAL starts a bit slowly, we may end up getting a NULL IUsbRestrict service in constructor. This causes a NPE later in onShowingStateChanged(). * To avoid this, we just try to get IUsbRestrict service in onShowingStateChanged(). This adds a little overhead, but prevents possible crashes. Change-Id: Idc09cc1700aad8753244789a1f14ea1d5267f77c
Loading
Please register or sign in to comment