summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java
diff options
context:
space:
mode:
authorEric Kuck <eric@bluelinelabs.com>2018-07-08 15:42:48 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-09 17:08:41 +0200
commitd7ea078cdf323946cea8bfcf8762f6a5a81f455c (patch)
tree290b1a2963dd92493f935c307664490e1021cd3a /app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java
parentd50e0f5fb9d60992d65a818a8af1cc20e878e312 (diff)
Request VPN permissions on activation
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to 'app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java')
-rw-r--r--app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java b/app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java
index 79168e48..d45e60a5 100644
--- a/app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java
+++ b/app/src/main/java/com/wireguard/android/databinding/ObservableKeyedRecyclerViewAdapter.java
@@ -14,7 +14,6 @@ import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.RecyclerView.Adapter;
import android.view.LayoutInflater;
-import android.view.View;
import android.view.ViewGroup;
import com.wireguard.android.BR;
@@ -78,7 +77,7 @@ public class ObservableKeyedRecyclerViewAdapter<K, E extends Keyed<? extends K>>
holder.binding.executePendingBindings();
if (rowConfigurationHandler != null) {
- rowConfigurationHandler.onConfigureRow(holder.binding.getRoot(), getItem(position), position);
+ rowConfigurationHandler.onConfigureRow(holder.binding, getItem(position), position);
}
}
@@ -149,8 +148,8 @@ public class ObservableKeyedRecyclerViewAdapter<K, E extends Keyed<? extends K>>
}
}
- public interface RowConfigurationHandler<T> {
- void onConfigureRow(View view, T item, int position);
+ public interface RowConfigurationHandler<B extends ViewDataBinding, T> {
+ void onConfigureRow(B binding, T item, int position);
}
}