call scanPath on the context after saving a video
This commit is contained in:
parent
c5f3d312d3
commit
5699ab4ca3
|
@ -41,10 +41,11 @@ class ChangeResolutionDialog(val activity: SimpleActivity, val config: Config, v
|
||||||
RadioGroupDialog(activity, items, selectionIndex) {
|
RadioGroupDialog(activity, items, selectionIndex) {
|
||||||
selectionIndex = it as Int
|
selectionIndex = it as Int
|
||||||
view.change_resolution_photo.text = items[selectionIndex].title
|
view.change_resolution_photo.text = items[selectionIndex].title
|
||||||
if (isBackCamera)
|
if (isBackCamera) {
|
||||||
config.backPhotoResIndex = it
|
config.backPhotoResIndex = it
|
||||||
else
|
} else {
|
||||||
config.frontPhotoResIndex = it
|
config.frontPhotoResIndex = it
|
||||||
|
}
|
||||||
dialog.dismiss()
|
dialog.dismiss()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -737,7 +737,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
||||||
try {
|
try {
|
||||||
toggleShutterSound(true)
|
toggleShutterSound(true)
|
||||||
mRecorder!!.stop()
|
mRecorder!!.stop()
|
||||||
mActivity!!.scanPath(mCurrVideoPath) {}
|
mActivity!!.applicationContext.scanPath(mCurrVideoPath) {}
|
||||||
} catch (e: RuntimeException) {
|
} catch (e: RuntimeException) {
|
||||||
mActivity!!.showErrorToast(e)
|
mActivity!!.showErrorToast(e)
|
||||||
toggleShutterSound(false)
|
toggleShutterSound(false)
|
||||||
|
|
Loading…
Reference in New Issue