From ec6a9b95f8137ae2f5d6324a6cc5fe928876735f Mon Sep 17 00:00:00 2001 From: Brian Floersch Date: Mon, 15 Jan 2018 15:39:54 -0500 Subject: [PATCH] fixed bug where app will close if all media containing folders are excluded and view mode is changed to "show all folders content" --- .../com/simplemobiletools/gallery/activities/MediaActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index e4aaa8ad2..19b79e767 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -262,7 +262,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { } private fun setupAdapter() { - if (isDirEmpty()) { + if (!mShowAll && isDirEmpty()) { return }