diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f27f4bad0..7ca04eed0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -61,7 +61,8 @@ android:name=".player.MainVideoPlayer" android:configChanges="keyboard|keyboardHidden|orientation|screenSize" android:label="@string/app_name" - android:launchMode="singleTask"/> + android:launchMode="singleTask" + android:theme="@style/VideoPlayerTheme"/> = Build.VERSION_CODES.P) { + queueLayout.setOnApplyWindowInsetsListener(new View.OnApplyWindowInsetsListener() { + @Override + public WindowInsets onApplyWindowInsets(View view, WindowInsets windowInsets) { + final DisplayCutout cutout = windowInsets.getDisplayCutout(); + if (cutout != null) + view.setPadding(cutout.getSafeInsetLeft(), cutout.getSafeInsetTop(), + cutout.getSafeInsetRight(), cutout.getSafeInsetBottom()); + return windowInsets; + } + }); + } } public void minimize() { diff --git a/app/src/main/res/values-v28/styles.xml b/app/src/main/res/values-v28/styles.xml new file mode 100644 index 000000000..92c2d9214 --- /dev/null +++ b/app/src/main/res/values-v28/styles.xml @@ -0,0 +1,8 @@ + + + + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index 8047ef7f4..633003092 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -247,4 +247,6 @@ + +