From a56dc86d6b74c44350afb89c490b583522ca290a Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Thu, 31 Oct 2024 06:56:32 +0100 Subject: [PATCH] refactor: Use correct `title` parameter when adding a SwissTransferTopAppBar --- .../screen/main/settings/SettingsDataManagementMatomoScreen.kt | 2 +- .../ui/screen/main/settings/SettingsDataManagementScreen.kt | 2 +- .../screen/main/settings/SettingsDataManagementSentryScreen.kt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt index 8021ee62e..b1a4f90a5 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementMatomoScreen.kt @@ -51,7 +51,7 @@ fun SettingsDataManagementMatomoScreen(navigateBack: (() -> Unit)?) { SmallWindowTopAppBarScaffold( smallWindowTopAppBar = { SwissTransferTopAppBar( - titleRes = R.string.matomo, + title = stringResource(R.string.matomo), navigationMenu = TopAppBarButton.backButton(navigateBack ?: {}), ) }, diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt index 443b46a75..9a7ff7619 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementScreen.kt @@ -55,7 +55,7 @@ fun SettingsDataManagementScreen( SmallWindowTopAppBarScaffold( smallWindowTopAppBar = { SwissTransferTopAppBar( - titleRes = R.string.settingsOptionDataManagement, + title = stringResource(R.string.settingsOptionDataManagement), navigationMenu = TopAppBarButton.backButton(navigateBack ?: {}), ) }, diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt index 1c4595ad8..7453c475b 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/screen/main/settings/SettingsDataManagementSentryScreen.kt @@ -51,7 +51,7 @@ fun SettingsDataManagementSentryScreen(navigateBack: (() -> Unit)?) { SmallWindowTopAppBarScaffold( smallWindowTopAppBar = { SwissTransferTopAppBar( - titleRes = R.string.sentry, + title = stringResource(R.string.sentry), navigationMenu = TopAppBarButton.backButton(navigateBack ?: {}), ) },