Try to fix setParameters for nexus

This commit is contained in:
Alexey Kulish 2015-12-24 13:15:29 +03:00
parent 56f09e99d9
commit 0cefa0c6b0

View file

@ -1188,7 +1188,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
cam.setDisplayOrientation(cameraOrientation); cam.setDisplayOrientation(cameraOrientation);
parameters.set("rotation", cameraOrientation); parameters.set("rotation", cameraOrientation);
if (mPreviewSize != null) { if (mPreviewSize != null) {
parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height); //parameters.setPreviewSize(mPreviewSize.width, mPreviewSize.height);
} }
cam.setParameters(parameters); cam.setParameters(parameters);
cam.setPreviewDisplay(holder); cam.setPreviewDisplay(holder);