Skip to content

Commit

Permalink
testing log in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdyrod committed May 29, 2024
1 parent 625e9b9 commit 90777d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private fun getString(
duration: Int,
isOverdue: Boolean = true,
): String {
println("Ferdy is overdue: $isOverdue")
return resourceManager.getPlural(
if (isOverdue) overduePluralResource else scheduledPluralResource,
duration,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,18 @@ class ResourceManager(
fun getPlural(@PluralsRes pluralResource: Int, quantity: Int) =
getWrapperContext().resources.getQuantityString(pluralResource, quantity)

fun getPlural(@PluralsRes pluralResource: Int, quantity: Int, vararg arguments: Any) =
getWrapperContext().resources.getQuantityString(pluralResource, quantity, *arguments)
fun getPlural(@PluralsRes pluralResource: Int, quantity: Int, vararg arguments: Any) : String? {
println(
"Ferdy getPlural: ${
getWrapperContext().resources.getQuantityString(
pluralResource,
quantity,
*arguments
)
}"
)
return getWrapperContext().resources.getQuantityString(pluralResource, quantity, *arguments)
}

fun formatWithEnrollmentLabel(
programUid: String?,
Expand Down

0 comments on commit 90777d7

Please sign in to comment.