From 754a8fa3d32d87d4043d62bbdc7adf4690c650e2 Mon Sep 17 00:00:00 2001 From: Tibor Kaputa Date: Sat, 11 Jun 2022 22:18:22 +0200 Subject: [PATCH] do not use fullscreen mode by default --- .../filemanager/pro/activities/PDFViewerActivity.kt | 7 ------- 1 file changed, 7 deletions(-) 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 0ce6893b..79656bb5 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 @@ -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