summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2021-03-10 21:52:05 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2021-03-10 21:52:05 +0000
commit23c9943c123d6fefb870ae647aea790f96f293d2 (patch)
tree10db3bafcdbac4eb458f609242ed0bd192a99cf9 /android/src
parentf2fb0c961bb069c79e6f0521d5384283161e886e (diff)
downloadmullvadvpn-23c9943c123d6fefb870ae647aea790f96f293d2.tar.xz
mullvadvpn-23c9943c123d6fefb870ae647aea790f96f293d2.zip
Clear editing position when disabling custom DNS
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt1
1 files changed, 1 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
index 709fc2d1b6..0bb528c623 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsAdapter.kt
@@ -47,6 +47,7 @@ class CustomDnsAdapter(val customDns: CustomDns) : Adapter<CustomDnsItemHolder>(
}
} else {
notifyItemRangeRemoved(0, cachedCustomDnsServers.size + 1)
+ editingPosition = null
}
}
}