update commons to 2.17.2
This commit is contained in:
parent
e0f4cf4688
commit
6ffea6c542
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -566,7 +566,6 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
|||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
config.isFirstRun = false
|
||||
mPreview?.releaseCamera()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue