Move window hiding to 'browserExit'
Fixes close, hide and toolbar 'done' and makes cordova window responsive
This commit is contained in:
parent
4376ddabcd
commit
79b1bb61a0
@ -81,10 +81,6 @@ static CDVWKInAppBrowser* instance = nil;
|
|||||||
return;
|
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.
|
// Things are cleaned up in browserExit.
|
||||||
[self.inAppBrowserViewController close];
|
[self.inAppBrowserViewController close];
|
||||||
}
|
}
|
||||||
@ -699,6 +695,10 @@ static CDVWKInAppBrowser* instance = nil;
|
|||||||
// Set navigationDelegate to nil to ensure no callbacks are received from it.
|
// Set navigationDelegate to nil to ensure no callbacks are received from it.
|
||||||
self.inAppBrowserViewController.navigationDelegate = nil;
|
self.inAppBrowserViewController.navigationDelegate = nil;
|
||||||
self.inAppBrowserViewController = 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 (IsAtLeastiOSVersion(@"7.0")) {
|
||||||
if (_previousStatusBarStyle != -1) {
|
if (_previousStatusBarStyle != -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user