diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-08-20 13:27:49 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-08-20 13:27:49 +0200 |
commit | 8dbfc2cf65c808827058d426cf57932eb9eaefc4 (patch) | |
tree | 34e7b9fc9a220b28af2642c2b16139ccff944da3 /src/de/blinkt/openvpn/core/VPNLaunchHelper.java | |
parent | 20b5cac307978d787333f4050ce28011f42bcfd0 (diff) |
Rename OpenVPN class to a VPNStatus
--HG--
rename : src/de/blinkt/openvpn/core/OpenVPN.java => src/de/blinkt/openvpn/core/VpnStatus.java
Diffstat (limited to 'src/de/blinkt/openvpn/core/VPNLaunchHelper.java')
-rw-r--r-- | src/de/blinkt/openvpn/core/VPNLaunchHelper.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/de/blinkt/openvpn/core/VPNLaunchHelper.java b/src/de/blinkt/openvpn/core/VPNLaunchHelper.java index 7d14ee6b..f6e8e0e3 100644 --- a/src/de/blinkt/openvpn/core/VPNLaunchHelper.java +++ b/src/de/blinkt/openvpn/core/VPNLaunchHelper.java @@ -26,7 +26,7 @@ public class VPNLaunchHelper { mvpn = context.getAssets().open("minivpn." + Build.CPU_ABI); } catch (IOException errabi) { - OpenVPN.logInfo("Failed getting assets for archicture " + Build.CPU_ABI); + VpnStatus.logInfo("Failed getting assets for archicture " + Build.CPU_ABI); e2=errabi; mvpn = context.getAssets().open("minivpn." + Build.CPU_ABI2); @@ -45,7 +45,7 @@ public class VPNLaunchHelper { fout.close(); if(!mvpnout.setExecutable(true)) { - OpenVPN.logMessage(0, "","Failed to set minivpn executable"); + VpnStatus.logMessage(0, "", "Failed to set minivpn executable"); return false; } @@ -53,8 +53,8 @@ public class VPNLaunchHelper { return true; } catch (IOException e) { if(e2!=null) - OpenVPN.logMessage(0, "",e2.getLocalizedMessage()); - OpenVPN.logMessage(0, "",e.getLocalizedMessage()); + VpnStatus.logMessage(0, "", e2.getLocalizedMessage()); + VpnStatus.logMessage(0, "", e.getLocalizedMessage()); e.printStackTrace(); return false; } @@ -63,10 +63,10 @@ public class VPNLaunchHelper { public static void startOpenVpn(VpnProfile startprofile, Context context) { if(!writeMiniVPN(context)) { - OpenVPN.logMessage(0, "", "Error writing minivpn binary"); + VpnStatus.logMessage(0, "", "Error writing minivpn binary"); return; } - OpenVPN.logMessage(0, "", context.getString(R.string.building_configration)); + VpnStatus.logMessage(0, "", context.getString(R.string.building_configration)); Intent startVPN = startprofile.prepareIntent(context); if(startVPN!=null) |