show errors during copy/move to user

This commit is contained in:
tibbi 2018-02-08 15:39:07 +01:00
parent 197ffd6606
commit 8f78c39dfe
2 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,7 @@ buildscript {
propMinSdkVersion = 16
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '3.10.11'
propVersionName = '3.10.13'
kotlin_version = '1.2.21'
support_libs = '27.0.2'
}

View file

@ -134,6 +134,8 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal
activity.scanFile(destination) {}
}
}
} catch (e: Exception) {
activity.showErrorToast(e)
} finally {
inputStream?.close()
out?.close()