Pārlūkot izejas kodu

hideFullScreenVideoStatusBars: return early if _autoManageStatusBarEnabled disabled

Kesha Antonov 4 gadus atpakaļ
vecāks
revīzija
d0461e81d0
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4
    0
      apple/RNCWebView.m

+ 4
- 0
apple/RNCWebView.m Parādīt failu

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