mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-11-05 12:32:53 -05:00
show the filename at PDF Viewer earlier
This commit is contained in:
1 parent
b9c3913949
commit
60343d2189
1 file changed
+4
-5
+4
-5
@@ -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,11 +92,9 @@ class PDFViewerActivity : SimpleActivity() {
|
||||
|
||||
showSystemUI(true)
|
||||
|
||||
pdf_viewer_wrapper.onGlobalLayout {
|
||||
val filename = getFilenameFromUri(uri)
|
||||
if (filename.isNotEmpty()) {
|
||||
supportActionBar?.title = filename
|
||||
}
|
||||
val filename = getFilenameFromUri(uri)
|
||||
if (filename.isNotEmpty()) {
|
||||
supportActionBar?.title = filename
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user