summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/Camera.java3
-rw-r--r--src/com/android/camera/VideoCamera.java3
-rw-r--r--src/com/android/camera/panorama/PanoramaActivity.java3
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() {