summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2024-02-26 21:34:25 +0100
committercyBerta <cyberta@riseup.net>2024-02-26 21:34:25 +0100
commitb8f3fbd25f19498e7a6a9080369ff5815c18d6d7 (patch)
treef8a658f0f8a28c77beab7ec34ba2a1d7a964a73f /app/src/main/java/se
parent5b07bb3df03cc95d6b50a8eec2bd30563a6d5b43 (diff)
fix runtime exception on location switch
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java2
1 files changed, 1 insertions, 1 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 16aea065..cbab1d32 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
@@ -439,7 +439,7 @@ public class NavigationDrawerFragment extends Fragment implements SharedPreferen
@Override
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) {
if (key != null && key.equals(PREFERRED_CITY)) {
- initManualGatewayEntry();
+ getActivity().runOnUiThread(this::initManualGatewayEntry);
}
}