Browse Source

VLCMovieViewController: Don't adapt for notches on external display

Soomin Lee 5 years ago
parent
commit
df7b91f286
1 changed files with 5 additions and 0 deletions
  1. 5 0
      Sources/VLCMovieViewController.m

+ 5 - 0
Sources/VLCMovieViewController.m

@@ -1783,6 +1783,11 @@ currentMediaHasTrackToChooseFrom:(BOOL)currentMediaHasTrackToChooseFrom
         return;
     }
 
+    // Ignore if playing on a external screen since there is no notches.
+    if ([_vpc isPlayingOnExternalScreen]) {
+        return;
+    }
+
     // 30.0 represents the exact size of the notch
     CGFloat constant = _vpc.currentAspectRatio != VLCAspectRatioFillToScreen ? 30.0 : 0.0;