mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 13:13:43 +00:00
Ensure that substrings match in the registration contact support bottom sheet.
This commit is contained in:
@@ -80,7 +80,7 @@ class ContactSupportBottomSheetFragment : ComposeBottomSheetDialogFragment() {
|
||||
private fun buildClickableString(): AnnotatedString {
|
||||
val troubleshootingStepsString = stringResource(R.string.RegistrationActivity_support_bottom_sheet_cta_troubleshooting_steps_substring)
|
||||
val contactSupportString = stringResource(R.string.RegistrationActivity_support_bottom_sheet_cta_contact_support_substring)
|
||||
val completeString = stringResource(R.string.RegistrationActivity_support_bottom_sheet_body_call_to_action)
|
||||
val completeString = stringResource(R.string.RegistrationActivity_support_bottom_sheet_body_call_to_action, troubleshootingStepsString, contactSupportString)
|
||||
|
||||
val troubleshootingStartIndex = completeString.indexOf(troubleshootingStepsString)
|
||||
val troubleshootingEndIndex = troubleshootingStartIndex + troubleshootingStepsString.length
|
||||
|
||||
Reference in New Issue
Block a user