mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Workaround for first header not displayed when meetings list is initially drawn
This commit is contained in:
parent
41721e3994
commit
96d85027c3
1 changed files with 1 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ class MeetingsListFragment : AbstractMainFragment() {
|
|||
}
|
||||
val index = listViewModel.meetings.value.orEmpty().indexOf(todayMeeting)
|
||||
Log.i("$TAG 'Today' is at position [$index]")
|
||||
binding.meetingsList.smoothScrollToPosition(index) // Workaround to have header decoration visible at top
|
||||
(binding.meetingsList.layoutManager as LinearLayoutManager).scrollToPositionWithOffset(
|
||||
index,
|
||||
AppUtils.getDimension(R.dimen.meeting_list_decoration_height).toInt()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue