fix #1617, show proper filename at resuming the fullscreen view

This commit is contained in:
tibbi 2019-10-27 10:25:59 +01:00
parent 0b94e7ca6c
commit 47c360f920

View file

@ -127,7 +127,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
invalidateOptionsMenu()
supportActionBar?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT))
supportActionBar?.title = Html.fromHtml("<font color=#FFFFFF'>${mPath.getFilenameFromPath()}</font>")
val filename = getCurrentMedium()?.name ?: mPath.getFilenameFromPath()
supportActionBar?.title = Html.fromHtml("<font color=#FFFFFF'>$filename</font>")
window.statusBarColor = Color.TRANSPARENT
}