From 883f3e74f10a0596933c0429d46b7eb264c1aed4 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Mon, 25 Mar 2024 11:55:33 +0100 Subject: [PATCH] fix to show all participants in conversation info In general it's a bad idea to use recyclerview inside scrollviews because of poor performance! So this is only a fix until everything is replaced with jetpack compose. setHasFixedSize and isNestedScrollingEnabled were set to false. This might not be necessary for the current implementation, but it's recommended when using NestedScrollView. Signed-off-by: Marcel Hibbe --- .../talk/conversationinfo/ConversationInfoActivity.kt | 2 +- app/src/main/res/layout/activity_conversation_info.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt index 067811a80..67909b7e4 100644 --- a/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt @@ -495,7 +495,7 @@ class ConversationInfoActivity : val layoutManager = SmoothScrollLinearLayoutManager(this) binding.recyclerView.layoutManager = layoutManager - binding.recyclerView.setHasFixedSize(true) + binding.recyclerView.setHasFixedSize(false) binding.recyclerView.adapter = adapter binding.recyclerView.isNestedScrollingEnabled = false adapter!!.addListener(this) diff --git a/app/src/main/res/layout/activity_conversation_info.xml b/app/src/main/res/layout/activity_conversation_info.xml index bdc37d75e..5e9b44505 100644 --- a/app/src/main/res/layout/activity_conversation_info.xml +++ b/app/src/main/res/layout/activity_conversation_info.xml @@ -65,7 +65,7 @@ android:indeterminateTintMode="src_in" tools:visibility="gone" /> - @@ -429,5 +429,5 @@ - +