mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
SCREEN_ORIENTATION_SENSOR_LANDSCAPE
This commit is contained in:
parent
fe2123c04a
commit
24dbf00c67
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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"
|
||||||
>
|
>
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Reference in a new issue