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)