diff options
author | cyBerta <cyberta@riseup.net> | 2021-03-27 15:37:03 +0100 |
---|---|---|
committer | cyberta <cyberta@riseup.net> | 2021-04-22 22:53:01 +0200 |
commit | 93e66fa7bca76c4fd6c77159a9cb71c1687d4881 (patch) | |
tree | 767a73b8890e21fb90f26474a19220117b6fc6c3 /app/src/main/java/se | |
parent | 16add6d6595a49de9a7e68479c6a2bec382aec78 (diff) |
fix location name comparison, allow to unselect a location
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java b/app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java index b14a9e44..b7d5831c 100644 --- a/app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java +++ b/app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java @@ -241,7 +241,7 @@ public class GatewaySelectionFragment extends Fragment implements SharedPreferen if (selectedLocation == null) { selectedLocation = location; selectedLocation.selected = true; - } else if (selectedLocation.equals(location.name)){ + } else if (selectedLocation.name.equals(location.name)){ selectedLocation.selected = !selectedLocation.selected; } else { selectedLocation.selected = false; |