mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 13:38:49 +03:00
reusing existing helper to replace partial in string template
This commit is contained in:
parent
5d0c55b617
commit
c3a7f6e7c8
1 changed files with 2 additions and 3 deletions
|
@ -46,10 +46,9 @@ class FtueAuthUseCaseFragment @Inject constructor() : AbstractFtueAuthFragment<F
|
|||
views.useCaseOptionTwo.setUseCase(R.string.ftue_auth_use_case_option_two, FtueUseCase.TEAMS)
|
||||
views.useCaseOptionThree.setUseCase(R.string.ftue_auth_use_case_option_three, FtueUseCase.COMMUNITIES)
|
||||
|
||||
val partial = getString(R.string.ftue_auth_use_case_skip_partial)
|
||||
views.useCaseSkip.setTextWithColoredPart(
|
||||
getString(R.string.ftue_auth_use_case_skip, partial),
|
||||
partial,
|
||||
fullTextRes = R.string.ftue_auth_use_case_skip,
|
||||
coloredTextRes = R.string.ftue_auth_use_case_skip_partial,
|
||||
underline = false,
|
||||
colorAttribute = R.attr.colorAccent,
|
||||
onClick = { viewModel.handle(OnboardingAction.UpdateUseCase(FtueUseCase.SKIP)) }
|
||||
|
|
Loading…
Reference in a new issue