From c4c19f82afb292cb69938bedfdc6d282ef0045d2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Apr 2017 19:24:20 +0200 Subject: [PATCH] fix #182, allow overwriting existing files after rotating on fullscreen view --- .../gallery/activities/ViewPagerActivity.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt index cbbdc4897..5d2037031 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -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)