update commons to 2.17.2

This commit is contained in:
tibbi 2017-05-06 13:16:39 +02:00
parent e0f4cf4688
commit 6ffea6c542
4 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,7 @@ android {
}
dependencies {
compile 'com.simplemobiletools:commons:2.16.1'
compile 'com.simplemobiletools:commons:2.17.2'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}

View File

@ -56,7 +56,7 @@ class PhotoProcessor(val activity: MainActivity, val uri: Uri?, val currCameraId
config.savePhotosFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString()
return ""
}
var document = activity.getFileDocument(path, config.treeUri)
var document = activity.getFileDocument(path)
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
fos = activity.contentResolver.openOutputStream(document?.uri)
} else {

View File

@ -556,7 +556,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
}
try {
var document = mActivity.getFileDocument(mCurrVideoPath, config.treeUri)
var document = mActivity.getFileDocument(mCurrVideoPath)
if (document == null) {
mActivity.toast(R.string.unknown_error_occurred)
return false

View File

@ -566,7 +566,6 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
override fun onDestroy() {
super.onDestroy()
config.isFirstRun = false
mPreview?.releaseCamera()
}