msm8226-common: camerawrapper: set flash properties only for back cam

This commit is contained in:
Francescodario Cuzzocrea 2019-06-01 15:48:29 +02:00
parent d36b40d5d3
commit 58b6c927e2

View file

@ -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());