updating phone number entry to include the homeserver and reduced confirmation copy
This commit is contained in:
parent
3140867252
commit
548a243d64
|
@ -27,8 +27,10 @@ import im.vector.app.core.extensions.autofillPhoneNumber
|
|||
import im.vector.app.core.extensions.content
|
||||
import im.vector.app.core.extensions.editText
|
||||
import im.vector.app.core.extensions.setOnImeDoneListener
|
||||
import im.vector.app.core.extensions.toReducedUrl
|
||||
import im.vector.app.databinding.FragmentFtuePhoneInputBinding
|
||||
import im.vector.app.features.onboarding.OnboardingAction
|
||||
import im.vector.app.features.onboarding.OnboardingViewState
|
||||
import im.vector.app.features.onboarding.RegisterAction
|
||||
import kotlinx.coroutines.flow.launchIn
|
||||
import kotlinx.coroutines.flow.onEach
|
||||
|
@ -77,6 +79,11 @@ class FtueAuthPhoneEntryFragment @Inject constructor(
|
|||
}
|
||||
}
|
||||
|
||||
override fun updateWithState(state: OnboardingViewState) {
|
||||
views.phoneEntryHeaderSubtitle.text = getString(R.string.ftue_auth_phone_subtitle, state.selectedHomeserver.userFacingUrl.toReducedUrl())
|
||||
|
||||
}
|
||||
|
||||
override fun onError(throwable: Throwable) {
|
||||
views.phoneEntryInput.error = errorFormatter.toHumanReadable(throwable)
|
||||
}
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/ftue_auth_phone_subtitle"
|
||||
android:textColor="?vctr_content_secondary"
|
||||
app:layout_constraintBottom_toTopOf="@id/titleContentSpacing"
|
||||
app:layout_constraintEnd_toEndOf="@id/phoneEntryGutterEnd"
|
||||
|
|
|
@ -36,7 +36,8 @@
|
|||
<string name="ftue_auth_email_subtitle">%s needs to verify your account</string>
|
||||
<string name="ftue_auth_email_entry_title">Email</string>
|
||||
<string name="ftue_auth_phone_title">Enter your phone number</string>
|
||||
<string name="ftue_auth_phone_subtitle">This will help verify your account and enables password recovery.</string>
|
||||
<!-- Note for translators, %s is the homeserver name, eg matrix.org -->
|
||||
<string name="ftue_auth_phone_subtitle">%s needs to verify your account</string>
|
||||
<string name="ftue_auth_phone_entry_title">Phone Number</string>
|
||||
<string name="ftue_auth_phone_confirmation_entry_title">Confirmation code</string>
|
||||
|
||||
|
@ -50,7 +51,7 @@
|
|||
|
||||
<string name="ftue_auth_phone_confirmation_title">Confirm your phone number</string>
|
||||
<!-- Note for translators, %s is the users international phone number -->
|
||||
<string name="ftue_auth_phone_confirmation_subtitle">We just sent a code to %s. Enter it below to verify it\'s you.</string>
|
||||
<string name="ftue_auth_phone_confirmation_subtitle">A code was sent to %s</string>
|
||||
<string name="ftue_auth_phone_confirmation_resend_code">Resend code</string>
|
||||
|
||||
<string name="ftue_auth_email_verification_title">Check your email to verify.</string>
|
||||
|
|
Loading…
Reference in New Issue