mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-17 04:10:39 +01:00
do not use fullscreen mode by default
This commit is contained in:
parent
77b288a0d3
commit
754a8fa3d3
@ -4,7 +4,6 @@ import android.content.Context
|
|||||||
import android.graphics.Color
|
import android.graphics.Color
|
||||||
import android.graphics.drawable.ColorDrawable
|
import android.graphics.drawable.ColorDrawable
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Handler
|
|
||||||
import android.print.PrintAttributes
|
import android.print.PrintAttributes
|
||||||
import android.print.PrintManager
|
import android.print.PrintManager
|
||||||
import android.view.Menu
|
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.R
|
||||||
import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI
|
import com.simplemobiletools.filemanager.pro.extensions.hideSystemUI
|
||||||
import com.simplemobiletools.filemanager.pro.extensions.showSystemUI
|
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 com.simplemobiletools.filemanager.pro.helpers.PdfDocumentAdapter
|
||||||
import kotlinx.android.synthetic.main.activity_pdf_viewer.*
|
import kotlinx.android.synthetic.main.activity_pdf_viewer.*
|
||||||
|
|
||||||
|
|
||||||
class PDFViewerActivity : SimpleActivity() {
|
class PDFViewerActivity : SimpleActivity() {
|
||||||
private var realFilePath = ""
|
private var realFilePath = ""
|
||||||
private var isFullScreen = false
|
private var isFullScreen = false
|
||||||
@ -95,10 +92,6 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
showSystemUI(true)
|
showSystemUI(true)
|
||||||
|
|
||||||
pdf_viewer_wrapper.onGlobalLayout {
|
pdf_viewer_wrapper.onGlobalLayout {
|
||||||
Handler(mainLooper).postDelayed({
|
|
||||||
toggleFullScreen()
|
|
||||||
}, HIDE_SYSTEM_UI_DELAY)
|
|
||||||
|
|
||||||
val filename = getFilenameFromUri(uri)
|
val filename = getFilenameFromUri(uri)
|
||||||
if (filename.isNotEmpty()) {
|
if (filename.isNotEmpty()) {
|
||||||
supportActionBar?.title = filename
|
supportActionBar?.title = filename
|
||||||
|
Loading…
x
Reference in New Issue
Block a user