Skip to content

Commit 805e528

Browse files
author
Yuriy Elistratov
committed
fix: Add default value to formatArgs field in Resource constructor
1 parent 11a790e commit 805e528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

textvalue/src/main/kotlin/TextValue.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public sealed interface TextValue : Parcelable {
4040
@Parcelize
4141
public data class Resource(
4242
@StringRes public val resourceId: Int,
43-
public val formatArgs: @RawValue Array<out Any>
43+
public val formatArgs: @RawValue Array<out Any> = emptyArray(),
4444
) : TextValue {
4545
@Suppress("SpreadOperator")
4646
override fun get(resources: Resources): String {

0 commit comments

Comments
 (0)