SCREEN_ORIENTATION_SENSOR_LANDSCAPE

This commit is contained in:
LagradOst 2021-10-10 18:18:57 +02:00
parent fe2123c04a
commit 24dbf00c67
2 changed files with 2 additions and 2 deletions

View file

@ -1621,7 +1621,7 @@ class PlayerFragment : Fragment() {
onAudioFocusEvent += ::handlePauseEvent onAudioFocusEvent += ::handlePauseEvent
activity?.hideSystemUI() activity?.hideSystemUI()
activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE activity?.requestedOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE
if (Util.SDK_INT <= 23) { if (Util.SDK_INT <= 23) {
if (!isCurrentlyPlaying) { if (!isCurrentlyPlaying) {
initPlayer() initPlayer()

View file

@ -9,7 +9,7 @@
android:keepScreenOn="true" android:keepScreenOn="true"
app:backgroundTint="@android:color/black" app:backgroundTint="@android:color/black"
android:background="@android:color/black" android:background="@android:color/black"
android:screenOrientation="userLandscape" android:screenOrientation="sensorLandscape"
app:surface_type="texture_view" app:surface_type="texture_view"
> >
<!-- <!--