fix #182, allow overwriting existing files after rotating on fullscreen view

This commit is contained in:
tibbi 2017-04-17 19:24:20 +02:00
parent e41ae2554c
commit c4c19f82af

View file

@ -234,11 +234,6 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
SaveAsDialog(this, currPath) {
try {
val file = File(it)
if (file.exists()) {
toast(R.string.name_taken)
return@SaveAsDialog
}
val bitmap = BitmapFactory.decodeFile(currPath)
getFileOutputStream(file) {
saveFile(file, bitmap, it)