show hidden items in viewpager only if the selected item is hidden

This commit is contained in:
tibbi 2017-08-06 16:54:58 +02:00
parent 15c20ab758
commit dc42dd566f

View file

@ -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()