From 05b6d7103599e17c5842dee84062747b67e66db9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 1 Mar 2017 23:32:05 +0100 Subject: [PATCH] simplify a check at deleting from fullscreen --- .../com/simplemobiletools/gallery/activities/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt index c9ed83d95..f9623e783 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MainActivity.kt @@ -207,7 +207,7 @@ class MainActivity : SimpleActivity(), DirectoryAdapter.DirOperationsListener { } private fun deleteItem(file: File) { - if (needsStupidWritePermissions(file.path) && isShowingPermDialog(file)) { + if (isShowingPermDialog(file)) { return }