Skip to content

Commit

Permalink
修改bug
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxikang committed Apr 27, 2017
1 parent 1e80382 commit 1f39e88
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
if (getItemDecoration() != null) {
recyclerView.addItemDecoration(getItemDecoration());
}
recyclerView.setLayoutManager(getLayoutManager());
recyclerView.setItemAnimator(new DefaultItemAnimator());
if (recyclerView.getLayoutManager()==null){
recyclerView.setLayoutManager(getLayoutManager());
recyclerView.setItemAnimator(new DefaultItemAnimator());
}


getPresenter().setView(this);
initListeners();
getPresenter().onPresenterCreate();
Expand Down

0 comments on commit 1f39e88

Please sign in to comment.