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
|
viewModel = callLogGroup.lastCallLogViewModel
|
||||||
binding.viewModel = viewModel
|
binding.viewModel = viewModel
|
||||||
|
if (viewModel.relatedCallLogs.value.orEmpty().isEmpty()) {
|
||||||
viewModel.addRelatedCallLogs(callLogGroup.callLogs)
|
viewModel.addRelatedCallLogs(callLogGroup.callLogs)
|
||||||
|
}
|
||||||
|
|
||||||
useMaterialSharedAxisXForwardAnimation = sharedViewModel.isSlidingPaneSlideable.value == false
|
useMaterialSharedAxisXForwardAnimation = sharedViewModel.isSlidingPaneSlideable.value == false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue