@@ -5,14 +5,12 @@ import android.graphics.Color
55import android.os.Bundle
66import android.print.PrintAttributes
77import android.print.PrintManager
8- import android.view.WindowInsetsController
98import android.view.WindowManager
109import android.widget.RelativeLayout
1110import com.github.barteksc.pdfviewer.scroll.DefaultScrollHandle
1211import com.simplemobiletools.commons.extensions.*
1312import com.simplemobiletools.commons.helpers.REAL_FILE_PATH
1413import com.simplemobiletools.commons.helpers.isPiePlus
15- import com.simplemobiletools.commons.helpers.isRPlus
1614import com.simplemobiletools.filemanager.pro.R
1715import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI
1816import com.simplemobiletools.filemanager.pro.extensions.showSystemUI
@@ -24,7 +22,7 @@ class PDFViewerActivity : SimpleActivity() {
2422 private var isFullScreen = false
2523
2624 override fun onCreate (savedInstanceState : Bundle ? ) {
27- useDynamicTheme = false
25+ showTransparentTop = true
2826
2927 super .onCreate(savedInstanceState)
3028 setContentView(R .layout.activity_pdf_viewer)
@@ -33,8 +31,12 @@ class PDFViewerActivity : SimpleActivity() {
3331 return
3432 }
3533
36- window.decorView.setBackgroundColor(getProperBackgroundColor())
3734 checkNotchSupport()
35+ pdf_viewer_toolbar.apply {
36+ setTitleTextColor(Color .WHITE )
37+ overflowIcon = resources.getColoredDrawableWithColor(R .drawable.ic_three_dots_vector, Color .WHITE )
38+ navigationIcon = resources.getColoredDrawableWithColor(R .drawable.ic_arrow_left_vector, Color .WHITE )
39+ }
3840
3941 if (intent.extras?.containsKey(REAL_FILE_PATH ) == true ) {
4042 realFilePath = intent.extras?.get(REAL_FILE_PATH )?.toString() ? : " "
@@ -43,15 +45,11 @@ class PDFViewerActivity : SimpleActivity() {
4345
4446 setupMenu()
4547 checkIntent()
46- if (isRPlus()) {
47- window.insetsController?.setSystemBarsAppearance(0 , WindowInsetsController .APPEARANCE_LIGHT_STATUS_BARS )
48- }
4948 }
5049
5150 override fun onResume () {
5251 super .onResume()
53- window.statusBarColor = Color .TRANSPARENT
54- setTranslucentNavigation()
52+ window.navigationBarColor = Color .TRANSPARENT
5553 }
5654
5755 private fun setupMenu () {
0 commit comments