mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Prevent meetings list display issue if source isn't sorted
This commit is contained in:
parent
bd52960749
commit
bab2acb75c
1 changed files with 6 additions and 2 deletions
|
|
@ -181,13 +181,17 @@ class MeetingsListViewModel
|
|||
fetchInProgress.postValue(true)
|
||||
}
|
||||
|
||||
val sortedSource = source.toList().sortedBy {
|
||||
it.dateTime
|
||||
}
|
||||
|
||||
val list = arrayListOf<MeetingListItemModel>()
|
||||
var previousModel: MeetingModel? = null
|
||||
var previousModelWeekLabel = ""
|
||||
var meetingForTodayFound = false
|
||||
Log.d("$TAG There are [${source.size}] conference info in DB")
|
||||
Log.d("$TAG There are [${sortedSource.size}] conference info in DB")
|
||||
|
||||
for (info: ConferenceInfo in source) {
|
||||
for (info: ConferenceInfo in sortedSource) {
|
||||
if (info.duration == 0) {
|
||||
Log.d(
|
||||
"$TAG Skipping conference info [${info.subject}] with uri [${info.uri?.asStringUriOnly()}] because it has no duration"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue