Skip to content

Commit

Permalink
add string resource
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianDevel committed Mar 31, 2022
1 parent 92ddefc commit 475bd37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/navigation/main_navigation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
<dialog
android:id="@+id/fileInfoActionsBottomSheetDialog"
android:name="com.infomaniak.drive.ui.bottomSheetDialogs.FileInfoActionsBottomSheetDialog"
android:label="FileInfoActionsBottomSheetDialog"
android:label="@string/fileActionBottomSheetDialog"
tools:layout="@layout/fragment_bottom_sheet_file_info_actions">
<argument
android:name="fileId"
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<string name="app_name" translatable="false">kDrive</string>
<string name="allCommonDocuments" translatable="false">Common Documents</string>

<string name="fileActionBottomSheetDialog" translatable="false">FileInfoActionsBottomSheetDialog</string>

<string name="notification_channel_id_comment" translatable="false">comment_channel_id</string>
<string name="notification_channel_id_general" translatable="false">general_channel_id</string>
<string name="notification_channel_id_shared" translatable="false">shared_channel_id</string>
Expand Down

0 comments on commit 475bd37

Please sign in to comment.