mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
show the filename at PDF Viewer earlier
This commit is contained in:
@ -41,6 +41,7 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
|
|
||||||
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
if (intent.extras?.containsKey(REAL_FILE_PATH) == true) {
|
||||||
realFilePath = intent.extras?.get(REAL_FILE_PATH)?.toString() ?: ""
|
realFilePath = intent.extras?.get(REAL_FILE_PATH)?.toString() ?: ""
|
||||||
|
supportActionBar?.title = realFilePath.getFilenameFromPath()
|
||||||
}
|
}
|
||||||
|
|
||||||
checkIntent()
|
checkIntent()
|
||||||
@ -91,11 +92,9 @@ class PDFViewerActivity : SimpleActivity() {
|
|||||||
|
|
||||||
showSystemUI(true)
|
showSystemUI(true)
|
||||||
|
|
||||||
pdf_viewer_wrapper.onGlobalLayout {
|
val filename = getFilenameFromUri(uri)
|
||||||
val filename = getFilenameFromUri(uri)
|
if (filename.isNotEmpty()) {
|
||||||
if (filename.isNotEmpty()) {
|
supportActionBar?.title = filename
|
||||||
supportActionBar?.title = filename
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user