diff options
author | Allan Wang <me@allanwang.ca> | 2017-07-19 12:41:34 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-07-19 12:41:34 -0700 |
commit | bb91aea60530f8342990ed5eda486656f3567d2c (patch) | |
tree | b24a30088bddc60f64bf5f07e177b70b831cc8fc | |
parent | f5ee096ccc7e68d5d3d23ba708ca962fb46874be (diff) | |
download | kau-2.1.tar.gz kau-2.1.tar.bz2 kau-2.1.zip |
Comment2.1
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt | 2 |
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 9884778..b73ff1f 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt @@ -98,7 +98,7 @@ inline fun Context.drawable(@DrawableRes id: Int, fallback: Drawable?): Drawable inline fun Context.interpolator(@InterpolatorRes id: Int) = AnimationUtils.loadInterpolator(this, id) inline fun Context.animation(@AnimRes id: Int) = AnimationUtils.loadAnimation(this, id) /** - * Returns plural form of res. By default, the quantity is passed as the argument + * Returns plural form of res. The quantity is also passed to the formatter as an int */ inline fun Context.plural(@PluralsRes id: Int, quantity: Number) = resources.getQuantityString(id, quantity.toInt(), quantity.toInt()) |