Browse Source

hideFullScreenVideoStatusBars: return early if _autoManageStatusBarEnabled disabled

Kesha Antonov 4 years ago
parent
commit
d0461e81d0
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apple/RNCWebView.m

+ 4
- 0
apple/RNCWebView.m View File

339
 -(void)hideFullScreenVideoStatusBars
339
 -(void)hideFullScreenVideoStatusBars
340
 {
340
 {
341
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
341
 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
342
+    if (!_autoManageStatusBarEnabled) {
343
+      return;
344
+    }
345
+
342
     _isFullScreenVideoOpen = NO;
346
     _isFullScreenVideoOpen = NO;
343
     RCTUnsafeExecuteOnMainQueueSync(^{
347
     RCTUnsafeExecuteOnMainQueueSync(^{
344
       [RCTSharedApplication() setStatusBarHidden:self->_savedStatusBarHidden animated:YES];
348
       [RCTSharedApplication() setStatusBarHidden:self->_savedStatusBarHidden animated:YES];