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) {
|
SaveAsDialog(this, currPath) {
|
||||||
try {
|
try {
|
||||||
val file = File(it)
|
val file = File(it)
|
||||||
if (file.exists()) {
|
|
||||||
toast(R.string.name_taken)
|
|
||||||
return@SaveAsDialog
|
|
||||||
}
|
|
||||||
|
|
||||||
val bitmap = BitmapFactory.decodeFile(currPath)
|
val bitmap = BitmapFactory.decodeFile(currPath)
|
||||||
getFileOutputStream(file) {
|
getFileOutputStream(file) {
|
||||||
saveFile(file, bitmap, it)
|
saveFile(file, bitmap, it)
|
||||||
|
|
Loading…
Reference in a new issue