summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-06 04:06:56 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-06 04:09:30 -0600
commit5f09afbc16d9db767f298a750b890a0c0773f549 (patch)
tree1fab5c915df64cdfc2d312b9d2ed8f73c990a1a3 /app/src/main
parent6eef4093d8a545d90c9d007bcc4ff794da6ee7f2 (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.java4
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);
}