Clean ups.
This commit is contained in:
parent
31265f660b
commit
6749661b0b
3 changed files with 4 additions and 11 deletions
|
|
@ -39,13 +39,6 @@ public abstract class AbsLibraryPagerRecyclerViewFragment<A extends RecyclerView
|
|||
private A adapter;
|
||||
private LM layoutManager;
|
||||
|
||||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
initLayoutManager();
|
||||
initAdapter(); // makes sure the adapter is not null when the loader finishes loading
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||
View view = inflater.inflate(getLayoutRes(), container, false);
|
||||
|
|
@ -59,6 +52,8 @@ public abstract class AbsLibraryPagerRecyclerViewFragment<A extends RecyclerView
|
|||
|
||||
getLibraryFragment().addOnAppBarOffsetChangedListener(this);
|
||||
|
||||
initLayoutManager();
|
||||
initAdapter();
|
||||
setUpRecyclerView();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue