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,10 +98,11 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
return
|
||||
}
|
||||
|
||||
if (intent.extras?.containsKey(IS_VIEW_INTENT) == true) {
|
||||
if (!config.isPasswordProtectionOn)
|
||||
if (intent.extras?.containsKey(IS_VIEW_INTENT) == true && File(mPath).isHidden) {
|
||||
if (!config.isPasswordProtectionOn) {
|
||||
config.temporarilyShowHidden = true
|
||||
}
|
||||
}
|
||||
|
||||
showSystemUI()
|
||||
|
||||
|
|
Loading…
Reference in a new issue