aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-19 12:04:47 -0700
committerAllan Wang <me@allanwang.ca>2017-07-19 12:04:47 -0700
commit15b98666d5d3b35c392fbd36bb55d56144b86c8f (patch)
tree1b6707bdfceee3c0e657ed55080dc62094a5be10
parent7fce853458bc9d70f28a778eeda91f671f297684 (diff)
downloadkau-15b98666d5d3b35c392fbd36bb55d56144b86c8f.tar.gz
kau-15b98666d5d3b35c392fbd36bb55d56144b86c8f.tar.bz2
kau-15b98666d5d3b35c392fbd36bb55d56144b86c8f.zip
Switch to long
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
index b1491dc..9c35df7 100644
--- a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
+++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
@@ -100,7 +100,7 @@ inline fun Context.animation(@AnimRes id: Int) = AnimationUtils.loadAnimation(th
/**
* Returns plural form of res. By default, the quantity is passed as the argument
*/
-inline fun Context.plural(@PluralsRes id: Int, quantity: Number, vararg args: Any = arrayOf(quantity))
+inline fun Context.plural(@PluralsRes id: Int, quantity: Number, vararg args: Any = arrayOf(quantity.toLong()))
= resources.getQuantityString(id, quantity.toInt(), args)
//Attr retrievers