update commons to 3.8.2

This commit is contained in:
tibbi 2018-01-23 18:53:11 +01:00
parent f8368150fb
commit 7ab1ae411a
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ ext {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:3.8.1' implementation 'com.simplemobiletools:commons:3.8.2'
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion" debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion" releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"

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 drawFocusRect(x: Int, y: Int) = mFocusRectView.drawFocusRect(x, y)
override fun mediaSaved(path: String) { override fun mediaSaved(path: String) {
applicationContext.scanPath(path) { scanPath(path) {
setupPreviewImage(mIsInPhotoMode) setupPreviewImage(mIsInPhotoMode)
Intent(BROADCAST_REFRESH_MEDIA).apply { Intent(BROADCAST_REFRESH_MEDIA).apply {
`package` = "com.simplemobiletools.gallery" `package` = "com.simplemobiletools.gallery"

View File

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