Updated on 2026-08-14

This commit is contained in:
Tangem 2022-08-04 12:54:46 +04:00
parent c62e02ae91
commit 22e8551b9e

View file

@ -68,13 +68,7 @@ sealed interface TextReference {
@ReadOnlyComposable
fun TextReference.resolveReference(): String {
return when (this) {
is TextReference.Res -> {
// if (source.formatArgs) {
// stringResource(source.id)
// } else {
stringResource(this.id, *this.formatArgs.toTypedArray())
// }
}
is TextReference.Res -> stringResource(this.id, *this.formatArgs.toTypedArray())
is TextReference.Str -> this.value
}
}