fix #182, allow overwriting existing files after rotating on fullscreen view
This commit is contained in:
parent
e41ae2554c
commit
c4c19f82af
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue