Fixed call logs details duplicated each time they are displayed
This commit is contained in:
parent
839efbdb7c
commit
f1cfa57f42
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,9 @@ class DetailCallLogFragment : GenericFragment<HistoryDetailFragmentBinding>() {
|
|||
|
||||
viewModel = callLogGroup.lastCallLogViewModel
|
||||
binding.viewModel = viewModel
|
||||
viewModel.addRelatedCallLogs(callLogGroup.callLogs)
|
||||
if (viewModel.relatedCallLogs.value.orEmpty().isEmpty()) {
|
||||
viewModel.addRelatedCallLogs(callLogGroup.callLogs)
|
||||
}
|
||||
|
||||
useMaterialSharedAxisXForwardAnimation = sharedViewModel.isSlidingPaneSlideable.value == false
|
||||
|
||||
|
|
Loading…
Reference in a new issue