diff --git a/library/src/main/java/com/chuckerteam/chucker/internal/ui/throwable/ThrowableListFragment.kt b/library/src/main/java/com/chuckerteam/chucker/internal/ui/throwable/ThrowableListFragment.kt index 41d59eb13..6d39be006 100644 --- a/library/src/main/java/com/chuckerteam/chucker/internal/ui/throwable/ThrowableListFragment.kt +++ b/library/src/main/java/com/chuckerteam/chucker/internal/ui/throwable/ThrowableListFragment.kt @@ -36,6 +36,7 @@ internal class ThrowableListFragment : Fragment(), ThrowableAdapter.ThrowableCli with(errorsBinding) { tutorialLink.movementMethod = LinkMovementMethod.getInstance() errorsRecyclerView.apply { + setHasFixedSize(true) addItemDecoration(DividerItemDecoration(context, DividerItemDecoration.VERTICAL)) adapter = errorsAdapter } diff --git a/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionListFragment.kt b/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionListFragment.kt index a19448a46..dc918f024 100644 --- a/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionListFragment.kt +++ b/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionListFragment.kt @@ -44,6 +44,7 @@ internal class TransactionListFragment : with(transactionsBinding) { tutorialLink.movementMethod = LinkMovementMethod.getInstance() transactionsRecyclerView.apply { + setHasFixedSize(true) addItemDecoration(DividerItemDecoration(requireContext(), DividerItemDecoration.VERTICAL)) adapter = transactionsAdapter } diff --git a/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionPayloadFragment.kt b/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionPayloadFragment.kt index fd714c1b2..66f28140c 100644 --- a/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionPayloadFragment.kt +++ b/library/src/main/java/com/chuckerteam/chucker/internal/ui/transaction/TransactionPayloadFragment.kt @@ -79,6 +79,7 @@ internal class TransactionPayloadFragment : showProgress() val result = processPayload(type, transaction) payloadBinding.responseRecyclerView.adapter = TransactionBodyAdapter(result) + payloadBinding.responseRecyclerView.setHasFixedSize(true) hideProgress() } }