update commons to 2.17.2
This commit is contained in:
parent
e0f4cf4688
commit
6ffea6c542
|
@ -32,7 +32,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.simplemobiletools:commons:2.16.1'
|
compile 'com.simplemobiletools:commons:2.17.2'
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
|
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()
|
config.savePhotosFolder = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).toString()
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
var document = activity.getFileDocument(path, config.treeUri)
|
var document = activity.getFileDocument(path)
|
||||||
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
|
document = document?.createFile("", path.substring(path.lastIndexOf('/') + 1))
|
||||||
fos = activity.contentResolver.openOutputStream(document?.uri)
|
fos = activity.contentResolver.openOutputStream(document?.uri)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -556,7 +556,7 @@ class Preview : ViewGroup, SurfaceHolder.Callback, MediaScannerConnection.OnScan
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var document = mActivity.getFileDocument(mCurrVideoPath, config.treeUri)
|
var document = mActivity.getFileDocument(mCurrVideoPath)
|
||||||
if (document == null) {
|
if (document == null) {
|
||||||
mActivity.toast(R.string.unknown_error_occurred)
|
mActivity.toast(R.string.unknown_error_occurred)
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -566,7 +566,6 @@ class MainActivity : SimpleActivity(), PreviewListener, PhotoProcessor.MediaSave
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
config.isFirstRun = false
|
|
||||||
mPreview?.releaseCamera()
|
mPreview?.releaseCamera()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue