Browse Source

Merge pull request #3762 from nextcloud/bugfix/3324/fixConversationInfoParticipantsList

fix to show all participants in conversation info
Marcel Hibbe 1 year ago
parent
commit
eae88f5c0e

+ 1 - 1
app/src/main/java/com/nextcloud/talk/conversationinfo/ConversationInfoActivity.kt

@@ -495,7 +495,7 @@ class ConversationInfoActivity :
 
 
         val layoutManager = SmoothScrollLinearLayoutManager(this)
         val layoutManager = SmoothScrollLinearLayoutManager(this)
         binding.recyclerView.layoutManager = layoutManager
         binding.recyclerView.layoutManager = layoutManager
-        binding.recyclerView.setHasFixedSize(true)
+        binding.recyclerView.setHasFixedSize(false)
         binding.recyclerView.adapter = adapter
         binding.recyclerView.adapter = adapter
         binding.recyclerView.isNestedScrollingEnabled = false
         binding.recyclerView.isNestedScrollingEnabled = false
         adapter!!.addListener(this)
         adapter!!.addListener(this)

+ 2 - 2
app/src/main/res/layout/activity_conversation_info.xml

@@ -49,7 +49,7 @@
         android:indeterminateTintMode="src_in"
         android:indeterminateTintMode="src_in"
         tools:visibility="gone" />
         tools:visibility="gone" />
 
 
-    <ScrollView
+    <androidx.core.widget.NestedScrollView
         android:layout_width="match_parent"
         android:layout_width="match_parent"
         android:layout_height="wrap_content">
         android:layout_height="wrap_content">
 
 
@@ -413,5 +413,5 @@
                 </LinearLayout>
                 </LinearLayout>
             </LinearLayout>
             </LinearLayout>
         </LinearLayout>
         </LinearLayout>
-    </ScrollView>
+    </androidx.core.widget.NestedScrollView>
 </LinearLayout>
 </LinearLayout>