aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-04-04 16:00:14 -0400
committerAllan Wang <me@allanwang.ca>2019-04-04 16:00:14 -0400
commit5ee12e797934b8f5f9c24374ba809cfdc0239805 (patch)
tree0980ea93856976e73aaf1f18f943ea35e99f6fc9 /core/src/main/kotlin/ca/allanwang/kau/utils/ContextUtils.kt
parent3f5ce21205354c087f83b0bd182cb6727c4ca3fe (diff)
downloadkau-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.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 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 {