Browse Source

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

master
Schoumi 2 years ago
parent
commit
40645dea23
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java

+ 2
- 2
app/src/main/java/fr/mobdev/lpcprog/fragment/ServersFragment.java View File

@@ -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