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

master
Schoumi 5 years ago
parent cb04034d5d
commit 40645dea23
  1. 4
      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);
}
}

Loading…
Cancel
Save