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