Commit 40645dea authored by Schoumi's avatar Schoumi

Fix Bug ("No Such Method") in older android version

parent cb04034d
...@@ -93,8 +93,8 @@ public class ServersFragment extends Fragment { ...@@ -93,8 +93,8 @@ public class ServersFragment extends Fragment {
if (v == null) if (v == null)
v = getView(); v = getView();
if(v!=null) { if(v!=null) {
RecyclerView serverList = (RecyclerView) v.findViewById(R.id.servers_list); RecyclerView serverList = v.findViewById(R.id.servers_list);
serverList.setLayoutManager(new LinearLayoutManager(getContext())); serverList.setLayoutManager(new LinearLayoutManager(getActivity()));
serverList.setAdapter(adapter); serverList.setAdapter(adapter);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment