summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/Camera.java
diff options
context:
space:
mode:
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