diff --git a/app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java b/app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java index 8a35e62..a61e04a 100644 --- a/app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java +++ b/app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java @@ -93,8 +93,8 @@ public class ServersFragment extends Fragment { if (v == null) v = getView(); if(v!=null) { - RecyclerView serverList = (RecyclerView) v.findViewById(R.id.servers_list); - serverList.setLayoutManager(new LinearLayoutManager(getContext())); + RecyclerView serverList = v.findViewById(R.id.servers_list); + serverList.setLayoutManager(new LinearLayoutManager(getActivity())); serverList.setAdapter(adapter); } }