call scanPath after capturing an image on app context

This commit is contained in:
tibbi 2018-01-23 18:39:08 +01:00
parent 5699ab4ca3
commit f8368150fb
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
override fun drawFocusRect(x: Int, y: Int) = mFocusRectView.drawFocusRect(x, y)
override fun mediaSaved(path: String) {
scanPath(path) {
applicationContext.scanPath(path) {
setupPreviewImage(mIsInPhotoMode)
Intent(BROADCAST_REFRESH_MEDIA).apply {
`package` = "com.simplemobiletools.gallery"