File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
app/src/main/kotlin/com/simplemobiletools/filemanager/pro/activities Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class PDFViewerActivity : SimpleActivity() {
4141
4242 if (intent.extras?.containsKey(REAL_FILE_PATH ) == true ) {
4343 realFilePath = intent.extras?.get(REAL_FILE_PATH )?.toString() ? : " "
44+ supportActionBar?.title = realFilePath.getFilenameFromPath()
4445 }
4546
4647 checkIntent()
@@ -91,11 +92,9 @@ class PDFViewerActivity : SimpleActivity() {
9192
9293 showSystemUI(true )
9394
94- pdf_viewer_wrapper.onGlobalLayout {
95- val filename = getFilenameFromUri(uri)
96- if (filename.isNotEmpty()) {
97- supportActionBar?.title = filename
98- }
95+ val filename = getFilenameFromUri(uri)
96+ if (filename.isNotEmpty()) {
97+ supportActionBar?.title = filename
9998 }
10099 }
101100
You can’t perform that action at this time.
0 commit comments