call scanPath on the context after saving a video

This commit is contained in:
tibbi
2018-01-23 18:33:42 +01:00
parent c5f3d312d3
commit 5699ab4ca3
2 changed files with 4 additions and 3 deletions

View File

@ -737,7 +737,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
try {
toggleShutterSound(true)
mRecorder!!.stop()
mActivity!!.scanPath(mCurrVideoPath) {}
mActivity!!.applicationContext.scanPath(mCurrVideoPath) {}
} catch (e: RuntimeException) {
mActivity!!.showErrorToast(e)
toggleShutterSound(false)