Merge "Check that InputDevice isn't null and add annotations" into tm-dev am: 94bba02785 am: 14fed02ecd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17546183 Change-Id: I90035df169287799b08ec97f342a52f37004d397 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -98,7 +98,7 @@ public class InputDeviceSensorManager implements InputManager.InputDeviceListene
|
||||
*/
|
||||
private void updateInputDeviceSensorInfoLocked(int deviceId) {
|
||||
final InputDevice inputDevice = InputDevice.getDevice(deviceId);
|
||||
if (inputDevice.hasSensor()) {
|
||||
if (inputDevice != null && inputDevice.hasSensor()) {
|
||||
final InputSensorInfo[] sensorInfos =
|
||||
mInputManager.getSensorList(deviceId);
|
||||
populateSensorsForInputDeviceLocked(deviceId, sensorInfos);
|
||||
|
||||
Reference in New Issue
Block a user