summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-03-27 15:45:18 +0100
committercyberta <cyberta@riseup.net>2021-04-22 22:53:01 +0200
commit90d91d7b1ac692cda7016a886fd57c49aaf124ac (patch)
tree8814395e1b0801319cbf601ba7e73e3929bda492 /app/src/main/java/se/leap
parent299dee25b134805114e8a9580716607bd338f30b (diff)
make LinearLayoutManager a local variable
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);