summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Camera.java
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-06-04 14:18:16 +0800
committerWu-cheng Li <wuchengli@google.com>2010-06-11 14:57:07 +0800
commit186ff08e71d106e329171055accd4395760495ea (patch)
treeb5cbb1574e2ee36c0516fc16852dc6c7458ed651 /src/com/android/camera/Camera.java
parent1c3631accb0068a0a96cfd338820e6a7a61426f9 (diff)
downloadLegacyCamera-186ff08e71d106e329171055accd4395760495ea.zip
LegacyCamera-186ff08e71d106e329171055accd4395760495ea.tar.gz
LegacyCamera-186ff08e71d106e329171055accd4395760495ea.tar.bz2
Add metering mode support.
Change-Id: I8b964df4534da0b393479baddabfc85ce1b09b2f
Diffstat (limited to 'src/com/android/camera/Camera.java')
-rw-r--r--src/com/android/camera/Camera.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index 1f18dd6..c67f093 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1871,6 +1871,14 @@ public class Camera extends NoSearchActivity implements View.OnClickListener,
} else {
mFocusMode = mParameters.getFocusMode();
}
+
+ // Set metering mode parameter.
+ String meteringMode = mPreferences.getString(
+ CameraSettings.KEY_METERING_MODE,
+ getString(R.string.pref_camera_meteringmode_default));
+ if (isSupported(meteringMode, mParameters.getSupportedMeteringModes())) {
+ mParameters.setMeteringMode(meteringMode);
+ }
}
// We separate the parameters into several subsets, so we can update only