Commit 40645dea authored by Schoumi's avatar Schoumi

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

parent cb04034d
Pipeline #90 passed with stage
in 1 minute and 8 seconds
......@@ -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);
}
}
......
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