fix theme stuff

This commit is contained in:
Bnyro 2022-08-10 16:27:16 +02:00
parent ffb3dd6743
commit 92dbd26b5f
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@
android:requestLegacyExternalStorage="true" android:requestLegacyExternalStorage="true"
android:roundIcon="@mipmap/ic_launcher_round" android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true" android:supportsRtl="true"
android:theme="@style/Theme.Purple" android:theme="@style/Theme.Purple.Pure"
tools:targetApi="n"> tools:targetApi="n">
<activity <activity

View File

@ -739,7 +739,8 @@ class PlayerFragment : BaseFragment() {
if (!isLive) seekToWatchPosition() if (!isLive) seekToWatchPosition()
exoPlayer.prepare() exoPlayer.prepare()
exoPlayer.play() exoPlayer.play()
exoPlayerView.useController = true // show controllers when not in picture in picture mode
if (!activity?.isInPictureInPictureMode!!) exoPlayerView.useController = true
initializePlayerNotification() initializePlayerNotification()
if (sponsorBlockEnabled) fetchSponsorBlockSegments() if (sponsorBlockEnabled) fetchSponsorBlockSegments()
// show comments if related streams disabled // show comments if related streams disabled