Digital PCT265 defect PRODDEF-28200 - Prevent navigation to the same selected index fixing hang ups.
This commit is contained in:
parent
7488ba3bcb
commit
f3f779f702
@ -364,10 +364,9 @@ open class SubNavManagerController: ViewController, MVMCoreViewManagerProtocol,
|
||||
|
||||
private func go(to index: Int) async {
|
||||
// Load controller from the cache
|
||||
guard index != self.index,
|
||||
guard index != tabs.selectedIndex,
|
||||
let controller = viewControllers[index] else { return }
|
||||
needToTrackTabSelect = true
|
||||
self.index = index
|
||||
await NavigationHandler.shared().replace(viewController: controller, navigationController:subNavigationController, delegateObject:delegateObject(), tryToReplace: false, animated: true)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user