summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-03-27 15:37:03 +0100
committercyberta <cyberta@riseup.net>2021-04-22 22:53:01 +0200
commit93e66fa7bca76c4fd6c77159a9cb71c1687d4881 (patch)
tree767a73b8890e21fb90f26474a19220117b6fc6c3 /app/src
parent16add6d6595a49de9a7e68479c6a2bec382aec78 (diff)
fix location name comparison, allow to unselect a location
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java2
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;