summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-12-02 22:23:09 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2021-03-25 18:19:59 +0000
commit7c9c421421804e6b7b1034f12272b741f75f1ed4 (patch)
treecf9c73e602a07ec1de50fec907162569b89fed9b /android
parentcc0132942473975ce1e95420841efec6c9c181f0 (diff)
downloadmullvadvpn-7c9c421421804e6b7b1034f12272b741f75f1ed4.tar.xz
mullvadvpn-7c9c421421804e6b7b1034f12272b741f75f1ed4.zip
Create UI-side `LocationInfoCache`
Diffstat (limited to 'android')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/LocationInfoCache.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/LocationInfoCache.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/LocationInfoCache.kt
new file mode 100644
index 0000000000..42d4906202
--- /dev/null
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/serviceconnection/LocationInfoCache.kt
@@ -0,0 +1,13 @@
+package net.mullvad.mullvadvpn.ui.serviceconnection
+
+class LocationInfoCache(
+ val serviceCache: net.mullvad.mullvadvpn.service.endpoint.LocationInfoCache
+) {
+ var onNewLocation
+ get() = serviceCache.onNewLocation
+ set(value) { serviceCache.onNewLocation = value }
+
+ fun onDestroy() {
+ onNewLocation = null
+ }
+}