diff options
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 | } |