Merge branch 'bugfix/CXTDT-181208' into 'develop'

Fixed back button not showing in call filter CXTDT-181208

See merge request BPHV_MIPS/mvm_core_ui!723
This commit is contained in:
Pfeil, Scott Robert 2021-05-25 18:20:13 +00:00
commit 822c086927

View File

@ -41,7 +41,20 @@ public class PageGetContactBehavior: PageVisibilityBehavior {
// Tell template to update
MVMCoreDispatchUtility.performBlock(onMainThread: {
// TODO: move to protocol function instead
(self?.delegate?.moleculeDelegate as? ViewController)?.handleNewDataAndUpdateUI()
guard let controller = self?.delegate?.moleculeDelegate as? ViewController else { return }
controller.handleNewDataAndUpdateUI()
if MVMCoreUIUtility.getCurrentVisibleController() == controller {
// Update navigation bar if showing.
controller.setNavigationBar()
controller.manager?.refreshNavigationUI()
}
// Update splitview properties
if controller == MVMCoreUISplitViewController.main()?.getCurrentDetailViewController() {
MVMCoreUISplitViewController.main()?.setBottomProgressBarProgress(controller.bottomProgress() ?? 0)
controller.updateTabBar()
}
})
}
}