update commons to 4.1.4
This commit is contained in:
parent
b562901014
commit
cc4e07d1ff
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue