Use productionApplicationName, set to "Element", instead of "Element X", and use ot for screen_onboarding_welcome_message

This commit is contained in:
Benoit Marty 2024-04-10 16:45:14 +02:00
parent a4cb241767
commit ffede8b13b
7 changed files with 8 additions and 3 deletions

View file

@ -33,7 +33,7 @@ class OnBoardingPresenter @Inject constructor(
override fun present(): OnBoardingState {
return OnBoardingState(
isDebugBuild = buildMeta.buildType != BuildType.RELEASE,
applicationName = buildMeta.applicationName,
productionApplicationName = buildMeta.productionApplicationName,
canLoginWithQrCode = OnBoardingConfig.CAN_LOGIN_WITH_QR_CODE,
canCreateAccount = OnBoardingConfig.CAN_CREATE_ACCOUNT,
)

View file

@ -18,7 +18,7 @@ package io.element.android.features.onboarding.impl
data class OnBoardingState(
val isDebugBuild: Boolean,
val applicationName: String,
val productionApplicationName: String,
val canLoginWithQrCode: Boolean,
val canCreateAccount: Boolean,
)

View file

@ -129,7 +129,7 @@ private fun OnBoardingContent(
)
Spacer(modifier = Modifier.height(8.dp))
Text(
text = stringResource(id = R.string.screen_onboarding_welcome_message, state.applicationName),
text = stringResource(id = R.string.screen_onboarding_welcome_message, state.productionApplicationName),
color = ElementTheme.materialColors.secondary,
style = ElementTheme.typography.fontBodyLgRegular.copy(fontSize = 17.sp),
textAlign = TextAlign.Center