Fix Bug ("No Such Method") in older android version
This commit is contained in:
parent
cb04034d5d
commit
40645dea23
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue