am e6045537
: am 7a1b5d5d
: Merge "Fix crash in SensorService. Ignore devices with no sensors." into mnc-dev
* commit 'e6045537bbce4c4f98e6a1149187bbcdaff57bcd': Fix crash in SensorService. Ignore devices with no sensors.
This commit is contained in:
commit
12b26278df
@ -276,6 +276,8 @@ status_t SensorService::dump(int fd, const Vector<String16>& args)
|
|||||||
dev.enableAllSensors();
|
dev.enableAllSensors();
|
||||||
}
|
}
|
||||||
return status_t(NO_ERROR);
|
return status_t(NO_ERROR);
|
||||||
|
} else if (mSensorList.size() == 0) {
|
||||||
|
result.append("No Sensors on the device\n");
|
||||||
} else {
|
} else {
|
||||||
// Default dump the sensor list and debugging information.
|
// Default dump the sensor list and debugging information.
|
||||||
result.append("Sensor List:\n");
|
result.append("Sensor List:\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user