From dcdf9fb1647b3cd2ad0ef90de1a24f64635a2a32 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 6 Oct 2016 22:13:55 +0200 Subject: [PATCH] Added text --- app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java | 4 ++-- app/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java index dd1b2467..b5be7239 100644 --- a/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java +++ b/app/src/main/java/eu/faircode/netguard/ServiceSinkhole.java @@ -416,7 +416,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS last_builder = getBuilder(listAllowed, listRule); vpn = startVPN(last_builder); if (vpn == null) - throw new IllegalStateException("VPN start failed"); + throw new IllegalStateException(getString((R.string.msg_start_failed))); startNative(vpn, listAllowed, listRule); @@ -492,7 +492,7 @@ public class ServiceSinkhole extends VpnService implements SharedPreferences.OnS } if (vpn == null) - throw new IllegalStateException("VPN start failed"); + throw new IllegalStateException(getString((R.string.msg_start_failed))); startNative(vpn, listAllowed, listRule); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 599a3074..d39a53a3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -165,6 +165,7 @@ For this reason, please allow a VPN connection in the next dialog. Your internet traffic is not being sent to a remote VPN server. NetGuard could not start automatically. This is likely because of a bug in your Android version. An unexpected error has occurred: \'%s\' + Android refused to start the VPN service at this moment. This is likely because of a bug in your Android version. Try NetGuard By donating you agree to the terms & conditions If you cannot press OK in the next dialog, another (screen dimming) application is likely manipulating the screen.