diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt index ac6240b3..a627e4f2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities/PDFViewerActivity.kt @@ -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 {