From 93e66fa7bca76c4fd6c77159a9cb71c1687d4881 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sat, 27 Mar 2021 15:37:03 +0100 Subject: fix location name comparison, allow to unselect a location --- .../se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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; -- cgit v1.2.3