From 475bd37f698e3e10e8422fff035517ad68edfd1e Mon Sep 17 00:00:00 2001 From: Fabian Devel Date: Thu, 31 Mar 2022 17:03:18 +0200 Subject: [PATCH] add string resource --- .../java/com/infomaniak/drive/views/FileInfoActionsView.kt | 4 +++- app/src/main/res/navigation/main_navigation.xml | 2 +- app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/infomaniak/drive/views/FileInfoActionsView.kt b/app/src/main/java/com/infomaniak/drive/views/FileInfoActionsView.kt index 4fe91fc8e9..d89034dfbc 100644 --- a/app/src/main/java/com/infomaniak/drive/views/FileInfoActionsView.kt +++ b/app/src/main/java/com/infomaniak/drive/views/FileInfoActionsView.kt @@ -216,7 +216,9 @@ class FileInfoActionsView @JvmOverloads constructor( showSnackBarInvalidFileName(currentFile.name) } with(findNavController()) { - if (currentBackStackEntry?.destination?.label == "FileInfoActionsBottomSheetDialog") popBackStack() + if (currentBackStackEntry?.destination?.label == getString(R.string.fileActionBottomSheetDialog)) { + popBackStack() + } } } } diff --git a/app/src/main/res/navigation/main_navigation.xml b/app/src/main/res/navigation/main_navigation.xml index 75788dbdce..ebd60c30ea 100644 --- a/app/src/main/res/navigation/main_navigation.xml +++ b/app/src/main/res/navigation/main_navigation.xml @@ -156,7 +156,7 @@ kDrive Common Documents + FileInfoActionsBottomSheetDialog + comment_channel_id general_channel_id shared_channel_id