SnapdraongCamera: update zoom value
update zoomseekbar and zoomrender value
according to the zoom setting value
Change-Id: Id8f51398813d0e63a8cec9837fe6c7d7c636b560
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 827b9a4..57a2ec0 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4482,6 +4482,7 @@
int zoom = Integer.parseInt(zoomStr);
if ( zoom !=0 ) {
mZoomValue = (float)zoom;
+ mUI.updateZoomSeekBar(mZoomValue);
}else{
mZoomValue = 1.0f;
}
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 59b0a8f..da32601 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -732,7 +732,10 @@
Float zoomMax = mSettingsManager.getMaxZoom(ids);
mZoomRenderer.setZoomMax(zoomMax);
- mZoomRenderer.setZoom(1f);
+ String zoomStr = mSettingsManager.getValue(SettingsManager.KEY_ZOOM);
+ int zoom = Integer.parseInt(zoomStr);
+
+ mZoomRenderer.setZoom(zoom > 1 ? zoom : 1f);
mZoomRenderer.setOnZoomChangeListener(new ZoomChangeListener());
}