mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
fixing some rotating related ui glitches at the pdf viewer
This commit is contained in:
@ -67,10 +67,17 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
pdf_viewer_toolbar.setNavigationOnClickListener {
|
pdf_viewer_toolbar.setNavigationOnClickListener {
|
||||||
finish()
|
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) {
|
override fun onConfigurationChanged(newConfig: Configuration) {
|
||||||
super.onConfigurationChanged(newConfig)
|
super.onConfigurationChanged(newConfig)
|
||||||
|
(pdf_viewer_appbar.layoutParams as RelativeLayout.LayoutParams).topMargin = statusBarHeight
|
||||||
if (!portrait && navigationBarRight && navigationBarWidth > 0) {
|
if (!portrait && navigationBarRight && navigationBarWidth > 0) {
|
||||||
pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0)
|
pdf_viewer_appbar.setPadding(0, 0, navigationBarWidth, 0)
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user