mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-30 18:29:21 +00:00
Much better scrolling performances in chat messages
This commit is contained in:
parent
1f18b6b0da
commit
713e048db9
2 changed files with 7 additions and 8 deletions
|
|
@ -178,6 +178,10 @@ class ConversationFragment : GenericFragment() {
|
|||
viewModel.showBackButton.value = slideable
|
||||
}
|
||||
|
||||
adapter.viewLifecycleOwner = viewLifecycleOwner
|
||||
binding.eventsList.setHasFixedSize(true)
|
||||
binding.eventsList.layoutManager = LinearLayoutManager(requireContext())
|
||||
|
||||
val localSipUri = args.localSipUri
|
||||
val remoteSipUri = args.remoteSipUri
|
||||
Log.i(
|
||||
|
|
@ -198,10 +202,6 @@ class ConversationFragment : GenericFragment() {
|
|||
}
|
||||
}
|
||||
|
||||
adapter.viewLifecycleOwner = viewLifecycleOwner
|
||||
binding.eventsList.setHasFixedSize(true)
|
||||
binding.eventsList.layoutManager = LinearLayoutManager(requireContext())
|
||||
|
||||
viewModel.events.observe(viewLifecycleOwner) { items ->
|
||||
val currentCount = adapter.itemCount
|
||||
adapter.submitList(items)
|
||||
|
|
|
|||
|
|
@ -205,10 +205,10 @@
|
|||
android:id="@+id/events_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="55dp"
|
||||
android:paddingBottom="5dp"
|
||||
android:background="@color/white"
|
||||
app:layout_constraintTop_toBottomOf="@id/top_bar_barrier"
|
||||
app:layout_constraintBottom_toTopOf="@id/composing" />
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintBottom_toTopOf="@id/composing"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatTextView
|
||||
style="@style/default_text_style_300"
|
||||
|
|
@ -222,7 +222,6 @@
|
|||
android:textSize="12sp"
|
||||
android:textColor="@color/gray_main2_400"
|
||||
android:visibility="@{viewModel.composingLabel.length() == 0 ? View.GONE : View.VISIBLE}"
|
||||
app:layout_constraintTop_toBottomOf="@id/events_list"
|
||||
app:layout_constraintBottom_toTopOf="@id/participants"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue