diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-04 16:00:14 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-04-04 16:00:14 -0400 |
commit | 5ee12e797934b8f5f9c24374ba809cfdc0239805 (patch) | |
tree | 0980ea93856976e73aaf1f18f943ea35e99f6fc9 /core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt | |
parent | 3f5ce21205354c087f83b0bd182cb6727c4ca3fe (diff) | |
download | kau-5ee12e797934b8f5f9c24374ba809cfdc0239805.tar.gz kau-5ee12e797934b8f5f9c24374ba809cfdc0239805.tar.bz2 kau-5ee12e797934b8f5f9c24374ba809cfdc0239805.zip |
Fix some lint issues
Diffstat (limited to 'core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt')
-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 fc8049d..94750e3 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt @@ -157,7 +157,7 @@ inline fun Context.animation(@AnimRes id: Int) = AnimationUtils.loadAnimation(th * 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())!! + resources.getQuantityString(id, quantity.toInt(), quantity.toInt()) //Attr retrievers fun Context.resolveColor(@AttrRes attr: Int, @ColorInt fallback: Int = 0): Int { |