diff options
-rw-r--r-- | src/com/android/camera/Camera.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java index e49fd46..fb2e76d 100644 --- a/src/com/android/camera/Camera.java +++ b/src/com/android/camera/Camera.java @@ -1432,6 +1432,13 @@ public class Camera extends Activity implements View.OnClickListener, getString(R.string.pref_camera_jpegquality_default)); mParameters.set(PARM_JPEG_QUALITY, jpegQuality); + // Set flash mode. + if (mParameters.get(Camera.SUPPORTED_FLASH_MODE) != null) { + String flashMode = mPreferences.getString( + CameraSettings.KEY_FLASH_MODE, "auto"); + mParameters.set(PARM_FLASH_MODE, flashMode); + } + mCameraDevice.setParameters(mParameters); } @@ -1710,9 +1717,6 @@ class FlashButton extends ImageView implements View.OnClickListener { public void setListener(ModeChangeListener listener) { mListener = listener; - if (listener != null) { - mListener.onFlashModeChanged(MODE_STRINGS[mCurrentMode]); - } } public void onClick(View v) { |