From 4844e2c2d807423decf4eeaa9b9dcb329745b0b7 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 3 Nov 2017 22:00:28 +0100 Subject: [PATCH] One more deleteFile to remove ...now I understand `return@getFileOutputStream`. --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 1 - 1 file changed, 1 deletion(-) 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 790a082bc..c47e1f407 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -462,7 +462,6 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View getFileOutputStream(tmpFile) { if (it == null) { toast(R.string.unknown_error_occurred) - deleteFile(tmpFile) {} return@getFileOutputStream }