mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-09-20 12:41:56 -04:00
fixing some rotating related ui glitches at the pdf viewer
This commit is contained in:
1 parent
1d00e8ea06
commit
decb60de84
1 file changed
+7
+7
@@ -67,10 +67,17 @@ class PDFViewerActivity : SimpleActivity() {
|
||||
pdf_viewer_toolbar.setNavigationOnClickListener {
|
||||
finish()
|
||||
}
|
||||
|
||||
if (!portrait && navigationBarRight && navigationBarWidth > 0) {
|
||||
pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0)
|
||||
} else {
|
||||
pdf_viewer_appbar.setPadding(0, 0, 0, 0)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||
super.onConfigurationChanged(newConfig)
|
||||
(pdf_viewer_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight
|
||||
if (!portrait && navigationBarRight && navigationBarWidth > 0) {
|
||||
pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user