From 5f09afbc16d9db767f298a750b890a0c0773f549 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sat, 6 Jan 2018 04:06:56 -0600 Subject: databinding: Simplify method signature Signed-off-by: Samuel Holland --- .../main/java/com/wireguard/android/databinding/BindingAdapters.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/com/wireguard/android') diff --git a/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java b/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java index 116b40cb..ea84bd8e 100644 --- a/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java +++ b/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java @@ -13,6 +13,7 @@ import com.wireguard.android.R; import com.wireguard.android.util.Keyed; import com.wireguard.android.util.KeyedObservableList; import com.wireguard.android.widget.ToggleSwitch; +import com.wireguard.android.widget.ToggleSwitch.OnBeforeCheckedChangeListener; import org.threeten.bp.Instant; import org.threeten.bp.ZoneId; @@ -92,8 +93,7 @@ public final class BindingAdapters { @BindingAdapter({"onBeforeCheckedChanged"}) public static void setOnBeforeCheckedChanged(final ToggleSwitch view, - final ToggleSwitch.OnBeforeCheckedChangeListener - listener) { + final OnBeforeCheckedChangeListener listener) { view.setOnBeforeCheckedChangeListener(listener); } -- cgit v1.2.3