This commit is contained in:
LagradOst 2021-10-31 18:01:26 +01:00
parent 5a341104f0
commit bd8350f255
2 changed files with 5 additions and 8 deletions

View File

@ -32,7 +32,6 @@ import android.view.animation.AnimationUtils
import android.widget.*
import android.widget.Toast.LENGTH_SHORT
import androidx.appcompat.app.AlertDialog
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
@ -830,7 +829,7 @@ class PlayerFragment : Fragment() {
}
isLocked = !isLocked
if(isLocked && isShowing) {
if (isLocked && isShowing) {
player_pause_holder?.postDelayed({
if (isLocked && isShowing) {
onClickChange()
@ -873,7 +872,7 @@ class PlayerFragment : Fragment() {
val color = if (isLocked) context?.colorFromAttribute(R.attr.colorPrimary)
else Color.WHITE
if(color != null) {
if (color != null) {
video_locked_text?.setTextColor(color)
video_locked_img?.setColorFilter(color)
}
@ -1941,6 +1940,9 @@ class PlayerFragment : Fragment() {
) + currentUrl.headers // Adds the headers from the provider, e.g Authorization
setDefaultRequestProperties(headers)
}
//https://stackoverflow.com/questions/69040127/error-code-io-bad-http-status-exoplayer-android
setAllowCrossProtocolRedirects(true)
}
} else {
DefaultDataSourceFactory(requireContext(), USER_AGENT)

View File

@ -99,11 +99,6 @@
android:summary="@string/dns_pref_summary"
android:icon="@drawable/ic_baseline_dns_24">
</Preference>
<Preference
android:icon="@drawable/ic_baseline_language_24"
android:key="@string/provider_lang_key"
android:title="@string/provider_lang_settings">
</Preference>
<Preference
android:icon="@drawable/ic_baseline_tv_24"
android:key="@string/app_layout_key"