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:
commit
fe7e98f615
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user