do not use fullscreen mode by default

This commit is contained in:
Tibor Kaputa 2022-06-11 22:18:22 +02:00 committed by GitHub
parent 77b288a0d3
commit 754a8fa3d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -4,7 +4,6 @@ import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.os.Handler
import android.print.PrintAttributes
import android.print.PrintManager
import android.view.Menu
@ -19,11 +18,9 @@ import com.simplemobiletools.commons.helpers.isRPlus
import com.simplemobiletools.filemanager.pro.R
import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI
import com.simplemobiletools.filemanager.pro.extensions.showSystemUI
import com.simplemobiletools.filemanager.pro.helpers.HIDE_SYSTEM_UI_DELAY
import com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter
import kotlinx.android.synthetic.main.activity_pdf_viewer.*
class PDFViewerActivity : SimpleActivity() {
private var realFilePath = ""
private var isFullScreen = false
@ -95,10 +92,6 @@ class PDFViewerActivity : SimpleActivity() {
showSystemUI(true)
pdf_viewer_wrapper.onGlobalLayout {
Handler(mainLooper).postDelayed({
toggleFullScreen()
}, HIDE_SYSTEM_UI_DELAY)
val filename = getFilenameFromUri(uri)
if (filename.isNotEmpty()) {
supportActionBar?.title = filename