diff options
author | pacien | 2017-11-07 20:38:57 +0100 |
---|---|---|
committer | pacien | 2017-11-07 20:38:57 +0100 |
commit | 807a1008cad5c9d100dd7038f3872553576c7be6 (patch) | |
tree | 328b5a22a79bd03b53cdd6aecfa62bd2503feabc /app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | |
parent | 24dbee4690fd102d9b723765fba5799c5790b001 (diff) | |
download | tincapp-807a1008cad5c9d100dd7038f3872553576c7be6.tar.gz |
Handle unavailable "external" storage ;
Remove network list observer
Diffstat (limited to 'app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt')
-rw-r--r-- | app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt index f22e1e1..601ffbb 100644 --- a/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt +++ b/app/src/main/java/org/pacien/tincapp/service/TincVpnService.kt | |||
@@ -44,6 +44,9 @@ class TincVpnService : VpnService() { | |||
44 | if (netName.isBlank()) | 44 | if (netName.isBlank()) |
45 | return reportError(resources.getString(R.string.message_no_network_name_provided), docTopic = "intent-api") | 45 | return reportError(resources.getString(R.string.message_no_network_name_provided), docTopic = "intent-api") |
46 | 46 | ||
47 | if (!AppPaths.storageAvailable()) | ||
48 | return reportError(resources.getString(R.string.message_storage_unavailable)) | ||
49 | |||
47 | if (!AppPaths.confDir(netName).exists()) | 50 | if (!AppPaths.confDir(netName).exists()) |
48 | return reportError(resources.getString(R.string.message_no_configuration_for_network_format, netName), docTopic = "configuration") | 51 | return reportError(resources.getString(R.string.message_no_configuration_for_network_format, netName), docTopic = "configuration") |
49 | 52 | ||