add a preview image of the last photo taken

This commit is contained in:
tibbi
2016-07-10 16:23:30 +02:00
parent 2a2a5cc9c6
commit f4a779db66
8 changed files with 147 additions and 25 deletions

View File

@ -621,7 +621,7 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
try {
mRecorder.stop();
final String[] paths = {mCurVideoPath};
MediaScannerConnection.scanFile(getContext(), paths, null, mIsVideoCaptureIntent ? this : null);
MediaScannerConnection.scanFile(getContext(), paths, null, this);
} catch (RuntimeException e) {
new File(mCurVideoPath).delete();
Utils.showToast(getContext(), R.string.video_saving_error);