diff options
Diffstat (limited to 'ui/src/main')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt b/ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt index 213338f1..05d69aec 100644 --- a/ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt +++ b/ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt @@ -136,7 +136,7 @@ object BindingAdapters { @JvmStatic @BindingAdapter("android:text") fun setText(view: TextView, text: Optional<*>) { - view.text = text.map { obj: Any -> obj.toString() }.orElse("") + view.text = text.map { it.toString() }.orElse("") } @JvmStatic |