diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-08-21 13:08:53 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2020-08-24 19:00:24 +0000 |
| commit | ddd0549f37f08d313ae574bb0cbcab6489da3298 (patch) | |
| tree | e1d779039c6076787e7b8edb4e4d871c7df8eebc | |
| parent | b40020026e48776f21c3e69be78751cb93b5622d (diff) | |
| download | mullvadvpn-ddd0549f37f08d313ae574bb0cbcab6489da3298.tar.xz mullvadvpn-ddd0549f37f08d313ae574bb0cbcab6489da3298.zip | |
Comment on spellings that can't be simply changed
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/service/SplitTunneling.kt | 4 |
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) |
