summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/base/fragments/GatewaySelectionFragment.java3
1 files changed, 1 insertions, 2 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 30a167fc..84024962 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
@@ -66,7 +66,6 @@ public class GatewaySelectionFragment extends Fragment implements SharedPreferen
private RecyclerView recyclerView;
- private LinearLayoutManager layoutManager;
private LocationListAdapter locationListAdapter;
private IconSwitchEntry autoSelectionSwitch;
private AppCompatButton vpnButton;
@@ -115,7 +114,7 @@ public class GatewaySelectionFragment extends Fragment implements SharedPreferen
private void initRecyclerView() {
recyclerView = (RecyclerView) getActivity().findViewById(R.id.gatewaySelection_list);
recyclerView.setHasFixedSize(true);
- layoutManager = new LinearLayoutManager(this.getContext());
+ LinearLayoutManager layoutManager = new LinearLayoutManager(this.getContext());
recyclerView.setLayoutManager(layoutManager);
locationListAdapter = new LocationListAdapter(gatewaysManager.getGatewayLocations());
recyclerView.setAdapter(locationListAdapter);