Fix top notification check
This commit is contained in:
parent
9da60c9658
commit
76b88e7121
@ -52,7 +52,9 @@ public extension MVMCoreAlertHandler {
|
|||||||
extension MVMCoreAlertHandler: MVMCorePresentationDelegateProtocol {
|
extension MVMCoreAlertHandler: MVMCorePresentationDelegateProtocol {
|
||||||
// Update displayable for each top alert operation when page type changes, in top queue priority order.
|
// Update displayable for each top alert operation when page type changes, in top queue priority order.
|
||||||
public func navigationController(_ navigationController: UINavigationController, displayedViewController viewController: UIViewController) {
|
public func navigationController(_ navigationController: UINavigationController, displayedViewController viewController: UIViewController) {
|
||||||
guard navigationController == MVMCoreUISplitViewController.main()?.navigationController else { return }
|
guard topAlertQueue.operations.count > 0 else { return }
|
||||||
|
let viewController = MVMCoreUIUtility.getViewControllerTraversingManagers(viewController)
|
||||||
|
guard viewController == MVMCoreUISplitViewController.main()?.getCurrentViewController() else { return }
|
||||||
let pageType = (viewController as? MVMCoreViewControllerProtocol)?.pageType
|
let pageType = (viewController as? MVMCoreViewControllerProtocol)?.pageType
|
||||||
topAlertQueue.operations.compactMap {
|
topAlertQueue.operations.compactMap {
|
||||||
$0 as? MVMCoreTopAlertOperation
|
$0 as? MVMCoreTopAlertOperation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user