From b6aaf159590a384fc98f97fc334816b919f1925f Mon Sep 17 00:00:00 2001 From: cyBerta Date: Fri, 4 Jun 2021 16:12:54 +0200 Subject: fix app crash in gateway selection error handling --- app/src/main/java/se/leap/bitmaskclient/eip/EIP.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main') 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()) { -- cgit v1.2.3