Fix show provided title when BrowseFilesActivity started with title

BrowseFilesIntent has a title property that is now reused when the BrowseFilesActivity is started and was accidentally deleted
This commit is contained in:
Julian Raufelder 2021-07-09 15:57:42 +02:00
parent 5ec454d3eb
commit 254ea01abb
No known key found for this signature in database
GPG Key ID: 17EE71F6634E381D

View File

@ -300,7 +300,7 @@ class BrowseFilesActivity : BaseActivity(), //
}
private fun effectiveTitle(folder: CloudFolderModel?): String {
val defaultTitle = getString(R.string.screen_file_browser_default_title)
val defaultTitle = browseFilesIntent.title() ?: getString(R.string.screen_file_browser_default_title)
return folder?.name?.let { folderName ->
if (folderName.isNotEmpty()) {
folderName