From 8e4e70aaf960c6f8308498407fd5f2f502dcdb38 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Fri, 15 Jul 2022 10:52:36 +0100 Subject: [PATCH] updating terms copy --- .../onboarding/ftueauth/terms/FtueAuthTermsFragment.kt | 4 +++- vector/src/main/res/layout/fragment_ftue_login_terms.xml | 1 - vector/src/main/res/values/donottranslate.xml | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/terms/FtueAuthTermsFragment.kt b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/terms/FtueAuthTermsFragment.kt index f168536575..371c618d54 100644 --- a/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/terms/FtueAuthTermsFragment.kt +++ b/vector/src/main/java/im/vector/app/features/onboarding/ftueauth/terms/FtueAuthTermsFragment.kt @@ -114,7 +114,9 @@ class FtueAuthTermsFragment @Inject constructor( } override fun updateWithState(state: OnboardingViewState) { - policyController.homeServer = state.selectedHomeserver.userFacingUrl.toReducedUrl() + val homeserverName = state.selectedHomeserver.userFacingUrl.toReducedUrl() + views.termsHeaderSubtitle.text = getString(R.string.ftue_auth_terms_subtitle, homeserverName) + policyController.homeServer = homeserverName renderState() } diff --git a/vector/src/main/res/layout/fragment_ftue_login_terms.xml b/vector/src/main/res/layout/fragment_ftue_login_terms.xml index c388b963d9..00a3909135 100644 --- a/vector/src/main/res/layout/fragment_ftue_login_terms.xml +++ b/vector/src/main/res/layout/fragment_ftue_login_terms.xml @@ -73,7 +73,6 @@ android:layout_height="wrap_content" android:layout_marginTop="8dp" android:gravity="center" - android:text="@string/ftue_auth_terms_subtitle" android:textColor="?vctr_content_secondary" app:layout_constraintBottom_toTopOf="@id/titleContentSpacing" app:layout_constraintEnd_toEndOf="@id/termsGutterEnd" diff --git a/vector/src/main/res/values/donottranslate.xml b/vector/src/main/res/values/donottranslate.xml index 40bce90237..0554062588 100755 --- a/vector/src/main/res/values/donottranslate.xml +++ b/vector/src/main/res/values/donottranslate.xml @@ -28,8 +28,9 @@ Element Matrix Services (EMS) is a robust and reliable hosting service for fast, secure and real time communication. Find out how on element.io/ems Get in touch - Privacy policy - Please read through T&C. You must accept in order to continue. + Server policies + + Please read through %s\'s terns and policies Enter your email