From 7b77efa6b8579870f74444660e8a8895be9cfdd5 Mon Sep 17 00:00:00 2001 From: Fahim Salam Chowdhury Date: Thu, 17 Nov 2022 11:29:13 +0600 Subject: [PATCH] 6245-Remove_unwanted_divider_from_list issue: https://gitlab.e.foundation/e/backlog/-/issues/6245 We are handling the divider from message_list_item.xml directly, no need to use DividerItemDecoration for the messageList recylerView. --- .../src/main/java/com/fsck/k9/fragment/MessageListFragment.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/fragment/MessageListFragment.kt b/app/ui/legacy/src/main/java/com/fsck/k9/fragment/MessageListFragment.kt index 5d6593901a..48ed74443a 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/fragment/MessageListFragment.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/fragment/MessageListFragment.kt @@ -16,7 +16,6 @@ import androidx.appcompat.view.ActionMode import androidx.core.os.bundleOf import androidx.fragment.app.Fragment import androidx.recyclerview.widget.DefaultItemAnimator -import androidx.recyclerview.widget.DividerItemDecoration import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import androidx.swiperefreshlayout.widget.SwipeRefreshLayout @@ -257,8 +256,6 @@ class MessageListFragment : private fun initializeRecyclerView(view: View) { recyclerView = view.findViewById(R.id.message_list) - val itemDecoration = DividerItemDecoration(requireContext(), DividerItemDecoration.VERTICAL) - recyclerView.addItemDecoration(itemDecoration) recyclerView.itemAnimator = DefaultItemAnimator().apply { supportsChangeAnimations = false } -- GitLab