Merge "Camera: Do not update state at HAL starts up if state already exists"

gugelfrei
TreeHugger Robot 6 years ago committed by Android (Google) Code Review
commit 950eca0579

@ -190,7 +190,9 @@ status_t CameraService::enumerateProviders() {
for (auto& cameraId : deviceIds) {
String8 id8 = String8(cameraId.c_str());
onDeviceStatusChanged(id8, CameraDeviceStatus::PRESENT);
if (getCameraState(id8) == nullptr) {
onDeviceStatusChanged(id8, CameraDeviceStatus::PRESENT);
}
}
return OK;

Loading…
Cancel
Save