diff --git a/app/src/main/java/com/nextcloud/talk/controllers/CallsListController.java b/app/src/main/java/com/nextcloud/talk/controllers/CallsListController.java index 01d63d564..8dfff3f1c 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/CallsListController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/CallsListController.java @@ -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); diff --git a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java b/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java index a96e04046..043741d76 100644 --- a/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java +++ b/app/src/main/java/com/nextcloud/talk/controllers/ContactsController.java @@ -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);