diff options
author | kwadronaut <kwadronaut@autistici.org> | 2023-02-23 11:34:34 +0100 |
---|---|---|
committer | kwadronaut <kwadronaut@autistici.org> | 2023-02-23 11:34:34 +0100 |
commit | 93bb86626e68c9820b7f40eebfc71c959ed0f047 (patch) | |
tree | 2ecffce31d8f3d1a769e3bcd294eeeda73f6d3b2 /app/src/main/java/se | |
parent | 3e9b1d2d30080939257ec382c49a6294bae3f65a (diff) |
fix city choose test
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java index 68435fec..aa894cca 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java @@ -424,11 +424,11 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen Provider currentProvider = ProviderObservable.getInstance().getCurrentProvider(); account.setText(currentProvider.getName()); initManualGatewayEntry(); - } + } @Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { - if (key.equals(PREFERRED_CITY)) { + if (key != null && key.equals(PREFERRED_CITY)) { initManualGatewayEntry(); } } |