From 93ad273a53e7d2975a67d7d1f8a157f845e41cf2 Mon Sep 17 00:00:00 2001 From: Wu-cheng Li Date: Tue, 9 Aug 2011 18:36:02 +0800 Subject: Use recording hint API. bug:4266229 Change-Id: Iafd4b6cb4bf20a1bff3ed639f9e48ca71f026969 --- src/com/android/camera/Camera.java | 3 +-- src/com/android/camera/VideoCamera.java | 3 +-- src/com/android/camera/panorama/PanoramaActivity.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index b6fde8e..ee496ca 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1885,8 +1885,7 @@ public class Camera extends ActivityBase implements View.OnClickListener, mParameters.setPreviewFrameRate(max); } - // TODO: use camera API after it is published. - mParameters.set("recording-hint", "false"); + mParameters.setRecordingHint(false); } private void updateCameraParametersZoom() { diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 18c0764..c6817a5 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -1733,8 +1733,7 @@ public class VideoCamera extends ActivityBase mParameters.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO); } - // TODO: use camera API after it is published. - mParameters.set("recording-hint", "true"); + mParameters.setRecordingHint(true); mCameraDevice.setParameters(mParameters); // Keep preview size up to date. diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java index 9e18308..d1ac6d2 100644 --- a/src/com/android/camera/panorama/PanoramaActivity.java +++ b/src/com/android/camera/panorama/PanoramaActivity.java @@ -195,8 +195,7 @@ public class PanoramaActivity extends Activity implements parameters.setPreviewFpsRange(minFps, maxFps); Log.v(TAG, "preview fps: " + minFps + ", " + maxFps); - // TODO: use camera API after it is published. - parameters.set("recording-hint", "false"); + parameters.setRecordingHint(false); } public int getPreviewBufSize() { -- cgit v1.1