delay turning flash off at taking photos
This commit is contained in:
parent
2978c399d4
commit
3f914d2590
|
@ -247,14 +247,15 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
||||||
}
|
}
|
||||||
|
|
||||||
mCanTakePicture = true;
|
mCanTakePicture = true;
|
||||||
|
|
||||||
|
if (mIsFlashEnabled) {
|
||||||
|
mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
|
||||||
|
mCamera.setParameters(mParameters);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, PHOTO_PREVIEW_LENGTH);
|
}, PHOTO_PREVIEW_LENGTH);
|
||||||
|
|
||||||
new PhotoProcessor(mActivity, mTargetUri).execute(data);
|
new PhotoProcessor(mActivity, mTargetUri).execute(data);
|
||||||
if (mIsFlashEnabled) {
|
|
||||||
mParameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
|
|
||||||
mCamera.setParameters(mParameters);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue