diff options
author | pacien | 2017-08-22 14:19:33 +0200 |
---|---|---|
committer | pacien | 2017-08-22 14:19:33 +0200 |
commit | a7e9a42940d43fbffd9e5dd0b15bab0490fe687e (patch) | |
tree | d2b214910c2811ad5ab90bf39699b87428b95654 /app/src/main/java | |
parent | 27c9a36b9623b5db5d8adc93bba61f59bc2a3071 (diff) | |
download | tincapp-a7e9a42940d43fbffd9e5dd0b15bab0490fe687e.tar.gz |
Little simplification
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/extensions/Android.kt | 5 |
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 | } |