Переглянути джерело

VLCMovieViewController: Don't adapt for notches on external display

Soomin Lee 5 роки тому
батько
коміт
df7b91f286
1 змінених файлів з 5 додано та 0 видалено
  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;