Try to fix photo/nexus

This commit is contained in:
Alexey Kulish 2015-12-24 16:28:43 +03:00
parent 2892e80975
commit 3772e95a7a

View file

@ -1143,7 +1143,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
parameters.setPictureSize(selectedCamPicSize.width, selectedCamPicSize.height);
log.debug("takePhotoWithCamera() set Picture size: width=" + selectedCamPicSize.width
+ " height=" + selectedCamPicSize.height);
/*
// camera focus type
autofocus = true;
parameters.setGpsLatitude(lat);
@ -1186,7 +1186,8 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
&& parameters.getSupportedFlashModes().contains(Parameters.FLASH_MODE_AUTO)) {
parameters.setFlashMode(Parameters.FLASH_MODE_AUTO);
}
*/
autofocus = false;
int cameraOrientation = getCamOrientation(mapActivity, Camera.CameraInfo.CAMERA_FACING_BACK);
//cam.setDisplayOrientation(cameraOrientation);
parameters.set("rotation", cameraOrientation);