From f4a445dba58a5fb7e2ef0fe8f647aed9bdc38797 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 2 Mar 2018 17:18:45 +0100 Subject: [PATCH] properly check nomedia files at ViewPagerActivity --- .../simplemobiletools/gallery/activities/ViewPagerActivity.kt | 2 +- 1 file changed, 1 insertion(+), 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 605565680..5077999da 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt @@ -625,7 +625,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View var parent = file.parentFile ?: return false while (true) { - if (parent.isHidden || parent.list()?.contains(NOMEDIA) == true) { + if (parent.isHidden || parent.list()?.any { it.startsWith(NOMEDIA) } == true) { return true }