From 7f21ccca2d6499563c043edf956f1a2881d020f0 Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Thu, 24 Nov 2016 18:47:57 +0000 Subject: Extract network device creation error message to strings.xml --- src/main/java/org/xapek/andiodine/IodineVpnService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/org') 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(); } -- cgit v1.2.1