Skip to content

Commit

Permalink
different toolbar title for when a recovery certificate is not created
Browse files Browse the repository at this point in the history
  • Loading branch information
ktiniatros committed Aug 31, 2022
1 parent b1d64c7 commit 90dd913
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ class YourEventsFragment : BaseFragment(R.layout.fragment_your_events) {
is YourEventsEndStateWithCustomTitle -> {
infoFragmentUtil.presentFullScreen(
currentFragment = this,
toolbarTitle = getString(R.string.certificate_created_toolbar_title),
toolbarTitle = if (endState is YourEventsEndStateWithCustomTitle.RecoveryTooOld ||
endState is YourEventsEndStateWithCustomTitle.RecoveryAndDosisCorrection
) { getString(R.string.your_positive_test_toolbar_title) } else {
getString(R.string.certificate_created_toolbar_title)
},
data = InfoFragmentData.TitleDescriptionWithButton(
title = getString(endState.title),
descriptionData = DescriptionData(
Expand Down
2 changes: 1 addition & 1 deletion holder/src/main/res/values-en/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
<string name="new_in_app_subtitle">New in the app</string>
<string name="new_in_app_screen_1_title">Recovery certificate</string>
<string name="new_in_app_screen_1_description">From now on, you can create a certificate of recovery using this app. This is proof you have had a positive test result. You can use it to show you’ve had coronavirus. This way you gain access to certain locations and activities. You may also use it to travel internationally.</string>
<string name="your_positive_test_toolbar_title">Your positive test result</string>
<string name="your_positive_test_toolbar_title">Retrieved positive test</string>
<string name="your_positive_test_description">Are the details correct? If the details about your test are correct, you can create a certificate.</string>
<string name="positive_test_title">Positive test result</string>
<string name="get_recovery_title">Retrieve your recovery details</string>
Expand Down
2 changes: 1 addition & 1 deletion holder/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
<string name="new_in_app_subtitle">Nieuw in de app</string>
<string name="new_in_app_screen_1_title">Bewijs van herstel</string>
<string name="new_in_app_screen_1_description">Vanaf nu kun je via deze app ook een herstelbewijs maken. Dat is een bewijs van een positieve testuitslag. Daarmee laat je zien dat je corona hebt gehad. Zo krijg je toegang tot bepaalde locaties en activiteiten. Ook kun je er internationaal mee reizen.</string>
<string name="your_positive_test_toolbar_title">Jouw positieve testuitslag</string>
<string name="your_positive_test_toolbar_title">Opgehaalde positieve test</string>
<string name="your_positive_test_description">Kloppen je gegevens? Als de gegevens van je test kloppen kun je een bewijs maken.</string>
<string name="positive_test_title">Positieve testuitslag</string>
<string name="get_recovery_title">Gegevens van je herstel ophalen</string>
Expand Down

0 comments on commit 90dd913

Please sign in to comment.