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

View file

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