diff options
author | cyBerta <cyberta@riseup.net> | 2024-02-26 21:34:25 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2024-02-26 21:34:25 +0100 |
commit | b8f3fbd25f19498e7a6a9080369ff5815c18d6d7 (patch) | |
tree | f8a658f0f8a28c77beab7ec34ba2a1d7a964a73f /app/src/main | |
parent | 5b07bb3df03cc95d6b50a8eec2bd30563a6d5b43 (diff) |
fix runtime exception on location switch
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/NavigationDrawerFragment.java | 2 |
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); } } |