Fix unresponsive main window after hide

This commit is contained in:
Niklas Merz 2019-09-24 16:28:07 +02:00
parent 79b1bb61a0
commit 855394628e

View File

@ -340,6 +340,10 @@ static CDVWKInAppBrowser* instance = nil;
- (void)hide:(CDVInvokedUrlCommand*)command
{
// 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;
if (self.inAppBrowserViewController == nil) {
NSLog(@"Tried to hide IAB after it was closed.");
return;