update commons to 4.1.4

This commit is contained in:
tibbi 2018-05-27 15:50:21 +02:00
parent b562901014
commit cc4e07d1ff
3 changed files with 3 additions and 4 deletions

View File

@ -45,7 +45,7 @@ ext {
}
dependencies {
implementation 'com.simplemobiletools:commons:4.0.18'
implementation 'com.simplemobiletools:commons:4.1.4'
debugImplementation "com.squareup.leakcanary:leakcanary-android:$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 mediaSaved(path: String) {
scanPath(path) {
rescanPaths(arrayListOf(path)) {
setupPreviewImage(mIsInPhotoMode)
Intent(BROADCAST_REFRESH_MEDIA).apply {
putExtra(REFRESH_PATH, path)

View File

@ -765,7 +765,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
try {
toggleShutterSound(true)
mRecorder!!.stop()
mActivity!!.scanPath(mCurrVideoPath) {}
mActivity!!.rescanPaths(arrayListOf(mCurrVideoPath))
} catch (e: RuntimeException) {
mActivity!!.showErrorToast(e)
toggleShutterSound(false)
@ -774,7 +774,6 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
mIsRecording = false
releaseCamera()
}
}
mRecorder = null