From a7e9a42940d43fbffd9e5dd0b15bab0490fe687e Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 22 Aug 2017 14:19:33 +0200 Subject: Little simplification --- app/src/main/java/org/pacien/tincapp/extensions/Android.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app') 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 { setNotifyOnChange(true) } - fun TextView.setText(list: List) = - if (list.isNotEmpty()) text = list.joinToString("\n") else text = App.getContext().getString(R.string.value_none) + fun TextView.setText(list: List) { + text = if (list.isNotEmpty()) list.joinToString("\n") else App.getContext().getString(R.string.value_none) + } } -- cgit v1.2.3