properly check nomedia files at ViewPagerActivity

This commit is contained in:
tibbi 2018-03-02 17:18:45 +01:00
parent 063406a471
commit f4a445dba5

View file

@ -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
}