summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/camera/PhotoModule.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index 26a3210..7f08d78 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -2878,9 +2878,6 @@ public class PhotoModule
}
setCameraParameters(UPDATE_PARAM_ALL);
-
- mCameraDevice.startPreview();
- setCameraState(IDLE);
mCameraDevice.setOneShotPreviewCallback(mHandler,
new CameraManager.CameraPreviewDataCallback() {
@Override
@@ -2888,6 +2885,9 @@ public class PhotoModule
mUI.hidePreviewCover();
}
});
+ mCameraDevice.startPreview();
+
+ setCameraState(IDLE);
mHandler.sendEmptyMessage(ON_PREVIEW_STARTED);
setDisplayOrientation();