summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt19
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsItemHolder.kt6
2 files changed, 25 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt
new file mode 100644
index 0000000000..e0eac7e702
--- /dev/null
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt
@@ -0,0 +1,19 @@
+package net.mullvad.mullvadvpn.ui.customdns
+
+import android.support.v7.widget.RecyclerView.Adapter
+import android.view.LayoutInflater
+import android.view.ViewGroup
+import net.mullvad.mullvadvpn.R
+
+class CustomDnsAdapter : Adapter<CustomDnsItemHolder>() {
+ override fun getItemCount() = 0
+
+ override fun onCreateViewHolder(parentView: ViewGroup, type: Int): CustomDnsItemHolder {
+ val inflater = LayoutInflater.from(parentView.context)
+ val view = inflater.inflate(R.layout.app_list_item, parentView, false)
+
+ return CustomDnsItemHolder(view)
+ }
+
+ override fun onBindViewHolder(holder: CustomDnsItemHolder, position: Int) {}
+}
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsItemHolder.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsItemHolder.kt
new file mode 100644
index 0000000000..2a6204f1d2
--- /dev/null
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsItemHolder.kt
@@ -0,0 +1,6 @@
+package net.mullvad.mullvadvpn.ui.customdns
+
+import android.support.v7.widget.RecyclerView.ViewHolder
+import android.view.View
+
+class CustomDnsItemHolder(view: View) : ViewHolder(view)