From ee410b52e3588851b0cecef8b16a63c96390a5be 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') 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