diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-08-09 18:36:02 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-08-09 18:36:27 +0800 |
commit | 93ad273a53e7d2975a67d7d1f8a157f845e41cf2 (patch) | |
tree | ab85162c42448409f5521178c44f4850129c5f3d /src/com | |
parent | e5fe56fec047dec5ccb12c2001bacfd9455352da (diff) | |
download | LegacyCamera-93ad273a53e7d2975a67d7d1f8a157f845e41cf2.zip LegacyCamera-93ad273a53e7d2975a67d7d1f8a157f845e41cf2.tar.gz LegacyCamera-93ad273a53e7d2975a67d7d1f8a157f845e41cf2.tar.bz2 |
Use recording hint API.
bug:4266229
Change-Id: Iafd4b6cb4bf20a1bff3ed639f9e48ca71f026969
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/camera/Camera.java | 3 | ||||
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 3 | ||||
-rw-r--r-- | 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() { |