summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-10-30 15:01:03 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-12-10 12:55:06 +0000
commitcfdee83279f4cfb925dbdf89f3b4bd2d86f91ab1 (patch)
tree14383f29e61dbd7133cfc142bbcd6f92971aea77 /android
parent4aa77f22a715758c77888f6817d11068c071d9c1 (diff)
downloadmullvadvpn-cfdee83279f4cfb925dbdf89f3b4bd2d86f91ab1.tar.xz
mullvadvpn-cfdee83279f4cfb925dbdf89f3b4bd2d86f91ab1.zip
Create initial `CustomDnsAdapter` class
Diffstat (limited to 'android')
-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)