Skip to content
Permalink
Browse files
fix(ios): prevent statusbar rotation after closing InAppBrowser (#672)
  • Loading branch information
jcesarmobile committed Apr 27, 2020
1 parent cbe3456 commit 2793e16ab433a413580e2a3a5ccbc40eda46c3b6
Showing 1 changed file with 3 additions and 1 deletion.
@@ -324,6 +324,7 @@ - (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;
self->tmpWindow = nil;

if (self.inAppBrowserViewController == nil) {
NSLog(@"Tried to hide IAB after it was closed.");
@@ -677,7 +678,8 @@ - (void)browserExit
// 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;

self->tmpWindow = nil;

if (IsAtLeastiOSVersion(@"7.0")) {
if (_previousStatusBarStyle != -1) {
[[UIApplication sharedApplication] setStatusBarStyle:_previousStatusBarStyle];

0 comments on commit 2793e16

Please sign in to comment.