From 4d4764eefb6b6c1c820f17441093fabd140e9e69 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 29 Mar 2020 19:44:51 -0600 Subject: BindingAdapters: use sleeker lambda Signed-off-by: Jason A. Donenfeld --- ui/src/main/java/com/wireguard/android/databinding/BindingAdapters.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/src/main') 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 -- cgit v1.2.3