mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01:00
properly check nomedia files at ViewPagerActivity
This commit is contained in:
parent
063406a471
commit
f4a445dba5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user