diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:06:56 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:09:30 -0600 |
commit | ee410b52e3588851b0cecef8b16a63c96390a5be (patch) | |
tree | 1fab5c915df64cdfc2d312b9d2ed8f73c990a1a3 /app/src/main | |
parent | e8a9884a80caf310c65a7e339bc00d037a459707 (diff) |
databinding: Simplify method signature
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |