send money string format fix (#9099)
This commit is contained in:
@@ -21,6 +21,6 @@ class ResourceProviderImpl @Inject constructor(@ApplicationContext val context:
|
||||
ResourceProvider {
|
||||
|
||||
override fun getString(@StringRes resId: Int, vararg formatArg: Any): String {
|
||||
return context.getString(resId, formatArg)
|
||||
return context.getString(resId, *formatArg)
|
||||
}
|
||||
}
|
||||
@@ -925,9 +925,9 @@ class SendMoneyViewModel @Inject constructor(
|
||||
ctaText = if (paymentAmount.isBlank() || paymentAmount == ZERO_STRING) {
|
||||
resourceProvider.getString(resId = R.string.np_pay)
|
||||
} else {
|
||||
String.format(
|
||||
resourceProvider.getString(resId = R.string.pay_rupees_x),
|
||||
_paymentAmount.value.getDisplayableAmount()
|
||||
resourceProvider.getString(
|
||||
resId = R.string.pay_rupees_x,
|
||||
paymentAmount.getDisplayableAmount()
|
||||
)
|
||||
}
|
||||
)
|
||||
@@ -941,9 +941,9 @@ class SendMoneyViewModel @Inject constructor(
|
||||
ctaText = if (paymentAmount.isBlank() || paymentAmount == ZERO_STRING) {
|
||||
resourceProvider.getString(resId = R.string.np_pay)
|
||||
} else {
|
||||
String.format(
|
||||
resourceProvider.getString(resId = R.string.pay_rupees_x),
|
||||
_paymentAmount.value.getDisplayableAmount()
|
||||
resourceProvider.getString(
|
||||
resId = R.string.pay_rupees_x,
|
||||
paymentAmount.getDisplayableAmount()
|
||||
)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user