From 63efaa2dccef207bfaba745ced7960be98de6bad Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Sat, 6 Jan 2018 04:07:13 -0600 Subject: databinding: Collection classes use generic E Signed-off-by: Samuel Holland --- .../java/com/wireguard/android/databinding/BindingAdapters.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 ea84bd8e..d887ee80 100644 --- a/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java +++ b/app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java @@ -41,12 +41,12 @@ public final class BindingAdapters { } @BindingAdapter({"items", "layout"}) - public static void setItems(final LinearLayout view, - final ObservableList oldList, final int oldLayoutId, - final ObservableList newList, final int newLayoutId) { + public static void setItems(final LinearLayout view, + final ObservableList oldList, final int oldLayoutId, + final ObservableList newList, final int newLayoutId) { if (oldList == newList && oldLayoutId == newLayoutId) return; - ItemChangeListener listener = ListenerUtil.getListener(view, R.id.item_change_listener); + ItemChangeListener listener = ListenerUtil.getListener(view, R.id.item_change_listener); // If the layout changes, any existing listener must be replaced. if (listener != null && oldList != null && oldLayoutId != newLayoutId) { listener.setList(null); -- cgit v1.2.3