aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorpacien2017-08-22 14:19:33 +0200
committerpacien2017-08-22 14:19:33 +0200
commita7e9a42940d43fbffd9e5dd0b15bab0490fe687e (patch)
treed2b214910c2811ad5ab90bf39699b87428b95654 /app
parent27c9a36b9623b5db5d8adc93bba61f59bc2a3071 (diff)
downloadtincapp-a7e9a42940d43fbffd9e5dd0b15bab0490fe687e.tar.gz
Little simplification
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/org/pacien/tincapp/extensions/Android.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/extensions/Android.kt b/app/src/main/java/org/pacien/tincapp/extensions/Android.kt
index f10c4c7..84dcfde 100644
--- a/app/src/main/java/org/pacien/tincapp/extensions/Android.kt
+++ b/app/src/main/java/org/pacien/tincapp/extensions/Android.kt
@@ -18,7 +18,8 @@ object Android {
18 setNotifyOnChange(true) 18 setNotifyOnChange(true)
19 } 19 }
20 20
21 fun TextView.setText(list: List<String>) = 21 fun TextView.setText(list: List<String>) {
22 if (list.isNotEmpty()) text = list.joinToString("\n") else text = App.getContext().getString(R.string.value_none) 22 text = if (list.isNotEmpty()) list.joinToString("\n") else App.getContext().getString(R.string.value_none)
23 }
23 24
24} 25}