summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-08-21 13:08:53 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-08-24 19:00:24 +0000
commitddd0549f37f08d313ae574bb0cbcab6489da3298 (patch)
treee1d779039c6076787e7b8edb4e4d871c7df8eebc /android/src/main
parentb40020026e48776f21c3e69be78751cb93b5622d (diff)
downloadmullvadvpn-ddd0549f37f08d313ae574bb0cbcab6489da3298.tar.xz
mullvadvpn-ddd0549f37f08d313ae574bb0cbcab6489da3298.zip
Comment on spellings that can't be simply changed
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt
index d4bebad3cc..7f0a678baa 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt
@@ -4,10 +4,14 @@ import android.content.Context
import java.io.File
import kotlin.properties.Delegates.observable
+// The spelling of the shared preferences location can't be changed to American English without
+// either having users lose their preferences on update or implementing some migration code.
private const val SHARED_PREFERENCES = "split_tunnelling"
private const val KEY_ENABLED = "enabled"
class SplitTunneling(context: Context) {
+ // The spelling of the app list file name can't be changed to American English without either
+ // having users lose their preferences on update or implementing some migration code.
private val appListFile = File(context.filesDir, "split-tunnelling.txt")
private val excludedApps = HashSet<String>()
private val preferences = context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE)