Merge branch 'bugfix/PRODDEF-28200' into 'release/11_6_0'

Digital PCT265 defect PRODDEF-28200 - Prevent navigation to the same controller fixing hang ups.

### Summary
Prevent navigation to the same controller fixing hang ups.

### JIRA Ticket
https://onejira.verizon.com/browse/PRODDEF-28200

Co-authored-by: Hedden, Kyle Matthew <kyle.hedden@verizonwireless.com>

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core/-/merge_requests/324
This commit is contained in:
Pfeil, Scott Robert 2024-04-23 23:06:18 +00:00
commit fe7e98f615

View File

@ -110,7 +110,8 @@ open class NavigationOperation: MVMCoreOperation, UINavigationControllerDelegate
*/ */
@MainActor @MainActor
open func set(viewControllers: [UIViewController], navigationController: UINavigationController, animated: Bool) { open func set(viewControllers: [UIViewController], navigationController: UINavigationController, animated: Bool) {
guard viewControllers.count > 0 else { guard viewControllers.count > 0,
navigationController.viewControllers != viewControllers else { // If the controller stack is the same, iOS will not call the delegate method of the change, causing the operation to hang.
markAsFinished() markAsFinished()
return return
} }