From 79b1bb61a06ad64615a604e1c567ef2362ec7a17 Mon Sep 17 00:00:00 2001 From: Niklas Merz Date: Mon, 23 Sep 2019 10:29:31 +0200 Subject: [PATCH] Move window hiding to 'browserExit' Fixes close, hide and toolbar 'done' and makes cordova window responsive --- src/ios/CDVWKInAppBrowser.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ios/CDVWKInAppBrowser.m b/src/ios/CDVWKInAppBrowser.m index b5fb174..96d9fa9 100644 --- a/src/ios/CDVWKInAppBrowser.m +++ b/src/ios/CDVWKInAppBrowser.m @@ -81,10 +81,6 @@ static CDVWKInAppBrowser* instance = nil; return; } - // Set tmpWindow to hidden to make main webview responsive to touch again - // https://stackoverflow.com/questions/4544489/how-to-remove-a-uiwindow - self->tmpWindow.hidden = YES; - // Things are cleaned up in browserExit. [self.inAppBrowserViewController close]; } @@ -699,6 +695,10 @@ static CDVWKInAppBrowser* instance = nil; // Set navigationDelegate to nil to ensure no callbacks are received from it. self.inAppBrowserViewController.navigationDelegate = nil; self.inAppBrowserViewController = nil; + + // Set tmpWindow to hidden to make main webview responsive to touch again + // Based on https://stackoverflow.com/questions/4544489/how-to-remove-a-uiwindow + self->tmpWindow.hidden = YES; if (IsAtLeastiOSVersion(@"7.0")) { if (_previousStatusBarStyle != -1) {