delay turning flash off at taking photos

This commit is contained in:
tibbi 2016-07-20 19:53:02 +02:00
parent 2978c399d4
commit 3f914d2590
1 changed files with 5 additions and 4 deletions

View File

@ -247,14 +247,15 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
}
mCanTakePicture = true;
if (mIsFlashEnabled) {
mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
mCamera.setParameters(mParameters);
}
}
}, PHOTO_PREVIEW_LENGTH);
new PhotoProcessor(mActivity, mTargetUri).execute(data);
if (mIsFlashEnabled) {
mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
mCamera.setParameters(mParameters);
}
}
};