diff options
author | cyBerta <cyberta@riseup.net> | 2021-06-04 16:12:54 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-06-04 16:12:54 +0200 |
commit | b6aaf159590a384fc98f97fc334816b919f1925f (patch) | |
tree | 7a5a08002598051d27f68228e8d6f2eb79c76a74 /app/src/main | |
parent | 1d25247363d37a8c5db423f71f388d9670ed7b4b (diff) |
fix app crash in gateway selection error handling
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/eip/EIP.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java index d632c09e..6919a532 100644 --- a/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java +++ b/app/src/main/java/se/leap/bitmaskclient/eip/EIP.java @@ -533,7 +533,7 @@ public final class EIP extends JobIntentService implements Observer { private @StringRes int getStringResourceForNoMoreGateways() { - boolean isManualGatewaySelection = PreferenceHelper.getLastConnectedVpnProfile(getApplicationContext()) != null; + boolean isManualGatewaySelection = PreferenceHelper.getPreferredCity(getApplicationContext()) != null; if (isManualGatewaySelection) { return R.string.warning_no_more_gateways_manual_gw_selection; } else if (ProviderObservable.getInstance().getCurrentProvider().supportsPluggableTransports()) { |