reusing existing helper to replace partial in string template
This commit is contained in:
parent
5d0c55b617
commit
c3a7f6e7c8
|
@ -46,10 +46,9 @@ class FtueAuthUseCaseFragment @Inject constructor() : AbstractFtueAuthFragment<F
|
||||||
views.useCaseOptionTwo.setUseCase(R.string.ftue_auth_use_case_option_two, FtueUseCase.TEAMS)
|
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)
|
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(
|
views.useCaseSkip.setTextWithColoredPart(
|
||||||
getString(R.string.ftue_auth_use_case_skip, partial),
|
fullTextRes = R.string.ftue_auth_use_case_skip,
|
||||||
partial,
|
coloredTextRes = R.string.ftue_auth_use_case_skip_partial,
|
||||||
underline = false,
|
underline = false,
|
||||||
colorAttribute = R.attr.colorAccent,
|
colorAttribute = R.attr.colorAccent,
|
||||||
onClick = { viewModel.handle(OnboardingAction.UpdateUseCase(FtueUseCase.SKIP)) }
|
onClick = { viewModel.handle(OnboardingAction.UpdateUseCase(FtueUseCase.SKIP)) }
|
||||||
|
|
Loading…
Reference in New Issue