From 254ea01abbba24fe17b7438a28aee063aae9c756 Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Fri, 9 Jul 2021 15:57:42 +0200 Subject: [PATCH] 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 --- .../cryptomator/presentation/ui/activity/BrowseFilesActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BrowseFilesActivity.kt b/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BrowseFilesActivity.kt index cfdc2b25..29c8e949 100644 --- a/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BrowseFilesActivity.kt +++ b/presentation/src/main/java/org/cryptomator/presentation/ui/activity/BrowseFilesActivity.kt @@ -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