mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-30 07:56:22 +00:00
Commented out postpone enter transition for conversation fragment, seems better
This commit is contained in:
parent
97cae93bb5
commit
efb8ec66a2
1 changed files with 3 additions and 2 deletions
|
|
@ -123,6 +123,7 @@ class ConversationFragment : GenericFragment() {
|
||||||
if (positionStart == 0 && adapter.itemCount == itemCount) {
|
if (positionStart == 0 && adapter.itemCount == itemCount) {
|
||||||
// First time we fill the list with messages
|
// First time we fill the list with messages
|
||||||
Log.i("$TAG [$itemCount] events have been loaded")
|
Log.i("$TAG [$itemCount] events have been loaded")
|
||||||
|
binding.eventsList.scrollToPosition(adapter.itemCount - 1)
|
||||||
} else {
|
} else {
|
||||||
Log.i("$TAG [$itemCount] new events have been loaded, scrolling to bottom")
|
Log.i("$TAG [$itemCount] new events have been loaded, scrolling to bottom")
|
||||||
binding.eventsList.smoothScrollToPosition(adapter.itemCount - 1)
|
binding.eventsList.smoothScrollToPosition(adapter.itemCount - 1)
|
||||||
|
|
@ -176,7 +177,7 @@ class ConversationFragment : GenericFragment() {
|
||||||
isSlidingPaneChild = true
|
isSlidingPaneChild = true
|
||||||
|
|
||||||
super.onViewCreated(view, savedInstanceState)
|
super.onViewCreated(view, savedInstanceState)
|
||||||
postponeEnterTransition()
|
// postponeEnterTransition()
|
||||||
|
|
||||||
binding.lifecycleOwner = viewLifecycleOwner
|
binding.lifecycleOwner = viewLifecycleOwner
|
||||||
|
|
||||||
|
|
@ -225,7 +226,7 @@ class ConversationFragment : GenericFragment() {
|
||||||
}
|
}
|
||||||
|
|
||||||
(view.parent as? ViewGroup)?.doOnPreDraw {
|
(view.parent as? ViewGroup)?.doOnPreDraw {
|
||||||
startPostponedEnterTransition()
|
// startPostponedEnterTransition()
|
||||||
sharedViewModel.openSlidingPaneEvent.value = Event(true)
|
sharedViewModel.openSlidingPaneEvent.value = Event(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue