mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57:59 +01:00
adding a crashfix
This commit is contained in:
parent
1b2e5f6131
commit
7271ac59b9
1 changed files with 2 additions and 2 deletions
|
@ -449,7 +449,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
if (file.isHidden)
|
if (file.isHidden)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
var parent = file.parentFile
|
var parent = file.parentFile ?: return false
|
||||||
while (true) {
|
while (true) {
|
||||||
if (parent.isHidden || parent.listFiles()?.contains(File(NOMEDIA)) == true) {
|
if (parent.isHidden || parent.listFiles()?.contains(File(NOMEDIA)) == true) {
|
||||||
return true
|
return true
|
||||||
|
@ -458,7 +458,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
if (parent.absolutePath == "/") {
|
if (parent.absolutePath == "/") {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
parent = parent.parentFile
|
parent = parent.parentFile ?: return false
|
||||||
}
|
}
|
||||||
|
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue