fix a glitch at saving OTG files in the editor

This commit is contained in:
tibbi 2019-02-15 21:28:37 +01:00
parent 06da09377d
commit 10c85cefab

View file

@ -765,6 +765,10 @@ class EditActivity : SimpleActivity(), CropImageView.OnCropImageCompleteListener
private fun getNewFilePath(): Pair<String, Boolean> {
var newPath = applicationContext.getRealPathFromURI(saveUri) ?: ""
if (newPath.startsWith("/mnt/")) {
newPath = ""
}
var shouldAppendFilename = true
if (newPath.isEmpty()) {
val filename = applicationContext.getFilenameFromContentUri(saveUri) ?: ""