summaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorWill Szumski <will@cowboycoders.org>2016-11-24 18:47:57 +0000
committeryvesf <yvesf-git@xapek.org>2016-11-28 19:53:44 +0100
commit7f21ccca2d6499563c043edf956f1a2881d020f0 (patch)
treee3fa8e40f8358dd2815b9952a56d8859457e13b9 /src/main/java/org
parentae6bf9d84cc762185ab23678ebe1a18ffc7dc630 (diff)
downloadandiodine-7f21ccca2d6499563c043edf956f1a2881d020f0.tar.gz
andiodine-7f21ccca2d6499563c043edf956f1a2881d020f0.zip
Extract network device creation error message to strings.xml
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/xapek/andiodine/IodineVpnService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/xapek/andiodine/IodineVpnService.java b/src/main/java/org/xapek/andiodine/IodineVpnService.java
index e3c7858..3c61483 100644
--- a/src/main/java/org/xapek/andiodine/IodineVpnService.java
+++ b/src/main/java/org/xapek/andiodine/IodineVpnService.java
@@ -255,7 +255,7 @@ public class IodineVpnService extends VpnService implements Runnable {
} catch (IllegalStateException e) {
String errorMessage = "IllegalStateException";
if (e.getMessage().contains("Cannot create interface")) {
- errorMessage = "Failed to create tunnel network device";
+ errorMessage = getString(R.string.vpnservice_error_create_interface_string);
} else {
e.printStackTrace();
}