show hidden items in viewpager only if the selected item is hidden
This commit is contained in:
parent
15c20ab758
commit
dc42dd566f
1 changed files with 3 additions and 2 deletions
|
@ -98,9 +98,10 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (intent.extras?.containsKey(IS_VIEW_INTENT) == true) {
|
if (intent.extras?.containsKey(IS_VIEW_INTENT) == true && File(mPath).isHidden) {
|
||||||
if (!config.isPasswordProtectionOn)
|
if (!config.isPasswordProtectionOn) {
|
||||||
config.temporarilyShowHidden = true
|
config.temporarilyShowHidden = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
showSystemUI()
|
showSystemUI()
|
||||||
|
|
Loading…
Reference in a new issue