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 c0ffd1c commit 76d5e0b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ fun Date?.toOverdueOrScheduledUiText(
if (this == null) return ""
val isOverdue: Boolean

if (printLog) {
println("Ferdy: this.time > currentDay.time is ${this.time > currentDay.time}")
println("Ferdy: this.time is ${this.time}")
println("Ferdy: currentDay.time is ${currentDay.time}")
}

val period = if (this.time > currentDay.time) {
isOverdue = false
Interval(currentDay.time, this.time)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,8 @@ class ResourceManager(
fun getPlural(@PluralsRes pluralResource: Int, quantity: Int) =
getWrapperContext().resources.getQuantityString(pluralResource, quantity)

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 getPlural(@PluralsRes pluralResource: Int, quantity: Int, vararg arguments: Any) =
getWrapperContext().resources.getQuantityString(pluralResource, quantity, *arguments)

fun formatWithEnrollmentLabel(
programUid: String?,
Expand Down

0 comments on commit 76d5e0b

Please sign in to comment.