diff options
author | cyBerta <cyberta@riseup.net> | 2019-07-12 13:28:36 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-07-12 13:28:36 +0200 |
commit | 5ea927f89626cef98495b5fead628cdc01d2a39a (patch) | |
tree | b1090debfa1adbd441f7b07a86027acffde27e28 /app/src/main/java/de/blinkt | |
parent | c5b4f58834c61b11310e443d8852f744a3ae48c3 (diff) |
replace 'Bitmask' in strings with variable for a better client customization
Diffstat (limited to 'app/src/main/java/de/blinkt')
-rw-r--r-- | app/src/main/java/de/blinkt/openvpn/core/VpnStatus.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/de/blinkt/openvpn/core/VpnStatus.java b/app/src/main/java/de/blinkt/openvpn/core/VpnStatus.java index d52ebac1..fa28a875 100644 --- a/app/src/main/java/de/blinkt/openvpn/core/VpnStatus.java +++ b/app/src/main/java/de/blinkt/openvpn/core/VpnStatus.java @@ -20,6 +20,8 @@ import java.util.concurrent.CopyOnWriteArrayList; import se.leap.bitmaskclient.R; +import static se.leap.bitmaskclient.utils.ConfigHelper.getProviderFormattedString; + public class VpnStatus { @@ -103,6 +105,8 @@ public class VpnStatus { if (mLastStateresid == R.string.state_waitconnectretry) { return c.getString(R.string.state_waitconnectretry, mLaststatemsg); + } else if (mLastStateresid == R.string.void_vpn_establish) { + return getProviderFormattedString(c.getResources(), R.string.void_vpn_establish); } String prefix = c.getString(mLastStateresid); |