summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-09-21 15:30:03 +0800
committerAngus Kong <shkong@google.com>2011-09-21 15:43:21 +0800
commit717ddf373190a7a0b85d57d2ffa4f4ed26abb5b1 (patch)
treecaf082061c68b25c4a0376fb033fc3481d32c2a3 /src/com
parent425d5ca6e7d330b6dc8f30850a20e385626a8350 (diff)
downloadLegacyCamera-717ddf373190a7a0b85d57d2ffa4f4ed26abb5b1.zip
LegacyCamera-717ddf373190a7a0b85d57d2ffa4f4ed26abb5b1.tar.gz
LegacyCamera-717ddf373190a7a0b85d57d2ffa4f4ed26abb5b1.tar.bz2
Show the video quality setting only when needed.
1. Remove mms option from quality setting. 2. Hide the quality preference when the desired quality is already known. bug:5141068 Change-Id: I3d839bc60fc6173626d0dfb4110edb06db4bf28e
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/VideoCamera.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index f100d28..39d3298 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -444,7 +444,9 @@ public class VideoCamera extends ActivityBase
private void loadCameraPreferences() {
CameraSettings settings = new CameraSettings(this, mParameters,
mCameraId, CameraHolder.instance().getCameraInfo());
- mPreferenceGroup = settings.getPreferenceGroup(R.xml.video_preferences);
+ // Remove the video quality preference setting when the quality is given in the intent.
+ mPreferenceGroup = filterPreferenceScreenByIntent(
+ settings.getPreferenceGroup(R.xml.video_preferences));
}
private boolean collapseCameraControls() {