mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-03-31 20:00:43 +02:00
show the filename at PDF Viewer earlier
This commit is contained in:
parent
b9c3913949
commit
60343d2189
@ -41,6 +41,7 @@ class PDFViewerActivity : SimpleActivity() {
|
||||
|
||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||
realFilePath = intent.extras?.get(REAL_FILE_PATH)?.toString() ?: ""
|
||||
supportActionBar?.title = realFilePath.getFilenameFromPath()
|
||||
}
|
||||
|
||||
checkIntent()
|
||||
@ -91,13 +92,11 @@ class PDFViewerActivity : SimpleActivity() {
|
||||
|
||||
showSystemUI(true)
|
||||
|
||||
pdf_viewer_wrapper.onGlobalLayout {
|
||||
val filename = getFilenameFromUri(uri)
|
||||
if (filename.isNotEmpty()) {
|
||||
supportActionBar?.title = filename
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun printText() {
|
||||
val adapter = PdfDocumentAdapter(this, realFilePath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user