mirror of
https://github.com/S3NEO/android_device_samsung_msm8226-common.git
synced 2024-11-06 21:55:45 +00:00
msm8226-common: camerawrapper: set flash properties only for back cam
This commit is contained in:
parent
d36b40d5d3
commit
58b6c927e2
1 changed files with 4 additions and 0 deletions
|
@ -170,6 +170,10 @@ static char* camera_fixup_getparams(int id, const char* settings) {
|
|||
ALOGV("%s: fixed parameters:", __FUNCTION__);
|
||||
params.dump();
|
||||
#endif
|
||||
|
||||
if (id == BACK_CAMERA_ID) {
|
||||
params.set(CameraParameters::KEY_SUPPORTED_FLASH_MODES, "auto,on,off,torch");
|
||||
}
|
||||
|
||||
String8 strParams = params.flatten();
|
||||
char* ret = strdup(strParams.string());
|
||||
|
|
Loading…
Reference in a new issue