shorting setting of list item decoration

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
AndyScherzinger 2017-10-24 22:07:41 +02:00
parent 951947f9f0
commit c56d4fb0f6
2 changed files with 4 additions and 6 deletions

View file

@ -287,11 +287,10 @@ public class CallsListController extends BaseController implements SearchView.On
recyclerView.setAdapter(adapter);
RecyclerView.ItemDecoration dividerItemDecoration = new DividerItemDecoration(
recyclerView.addItemDecoration(new DividerItemDecoration(
recyclerView.getContext(),
layoutManager.getOrientation()
);
recyclerView.addItemDecoration(dividerItemDecoration);
));
swipeRefreshLayout.setOnRefreshListener(() -> fetchData(true));
swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary);

View file

@ -333,11 +333,10 @@ public class ContactsController extends BaseController implements SearchView.OnQ
recyclerView.setHasFixedSize(true);
recyclerView.setAdapter(adapter);
RecyclerView.ItemDecoration dividerItemDecoration = new DividerItemDecoration(
recyclerView.addItemDecoration(new DividerItemDecoration(
recyclerView.getContext(),
layoutManager.getOrientation()
);
recyclerView.addItemDecoration(dividerItemDecoration);
));
swipeRefreshLayout.setOnRefreshListener(() -> fetchData(true));
swipeRefreshLayout.setColorSchemeResources(R.color.colorPrimary);