diff options
author | Alex Ray <aray@google.com> | 2012-10-08 12:04:15 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-08 14:05:56 -0700 |
commit | 6f854608d26d7abcce5e46396c7260ed7b250653 (patch) | |
tree | b4079d305e258df3d2bc0ec286bbe217a085d5df /services/camera | |
parent | 4c9aeb21051e908b0a0a0864a04a96a4109717a1 (diff) | |
download | frameworks_av-6f854608d26d7abcce5e46396c7260ed7b250653.zip frameworks_av-6f854608d26d7abcce5e46396c7260ed7b250653.tar.gz frameworks_av-6f854608d26d7abcce5e46396c7260ed7b250653.tar.bz2 |
Camera2: Set default flash mode to FLASH_OFF
Bug: 6970090
Change-Id: I904b1be2ee0710e82e8e647753a705184c10b46c
Diffstat (limited to 'services/camera')
-rw-r--r-- | services/camera/libcameraservice/camera2/Parameters.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/camera2/Parameters.cpp b/services/camera/libcameraservice/camera2/Parameters.cpp index 4d51120..91466ee 100644 --- a/services/camera/libcameraservice/camera2/Parameters.cpp +++ b/services/camera/libcameraservice/camera2/Parameters.cpp @@ -542,9 +542,9 @@ status_t Parameters::initialize(const CameraMetadata *info) { if (!availableAeModes.count) return NO_INIT; if (flashAvailable.data.u8[0]) { - flashMode = Parameters::FLASH_MODE_AUTO; + flashMode = Parameters::FLASH_MODE_OFF; params.set(CameraParameters::KEY_FLASH_MODE, - CameraParameters::FLASH_MODE_AUTO); + CameraParameters::FLASH_MODE_OFF); String8 supportedFlashModes(CameraParameters::FLASH_MODE_OFF); supportedFlashModes = supportedFlashModes + |