Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Oct 8, 2018
1 parent 68f02bc commit 58caeb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ private void setAutoFocusEnabledInternal(final boolean autoFocusEnabled) {
if (decoderWrapper != null) {
final Camera camera = decoderWrapper.getCamera();
camera.cancelAutoFocus();
mTouchFocusing = false;
final Parameters parameters = camera.getParameters();
final AutoFocusMode autoFocusMode = mAutoFocusMode;
if (autoFocusEnabled) {
Expand All @@ -663,7 +664,6 @@ private void setAutoFocusEnabledInternal(final boolean autoFocusEnabled) {
}
camera.setParameters(parameters);
if (autoFocusEnabled) {
mTouchFocusing = false;
mSafeAutoFocusAttemptsCount = 0;
mSafeAutoFocusing = false;
if (autoFocusMode == AutoFocusMode.SAFE) {
Expand Down

0 comments on commit 58caeb0

Please sign in to comment.