summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2018-01-06 04:07:13 -0600
committerSamuel Holland <samuel@sholland.org>2018-01-06 04:09:30 -0600
commit6057ac8e5e683389014b4393a99e548a6c12c149 (patch)
treeb2dbbc56e8912e1856f581b3b21210aae4e4898f /app/src/main/java/com
parentee410b52e3588851b0cecef8b16a63c96390a5be (diff)
databinding: Collection classes use generic E
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r--app/src/main/java/com/wireguard/android/databinding/BindingAdapters.java8
1 files 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 <T> void setItems(final LinearLayout view,
- final ObservableList<T> oldList, final int oldLayoutId,
- final ObservableList<T> newList, final int newLayoutId) {
+ public static <E> void setItems(final LinearLayout view,
+ final ObservableList<E> oldList, final int oldLayoutId,
+ final ObservableList<E> newList, final int newLayoutId) {
if (oldList == newList && oldLayoutId == newLayoutId)
return;
- ItemChangeListener<T> listener = ListenerUtil.getListener(view, R.id.item_change_listener);
+ ItemChangeListener<E> 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);