diff --git a/app/src/main/java/ani/dantotsu/media/anime/ExoplayerView.kt b/app/src/main/java/ani/dantotsu/media/anime/ExoplayerView.kt index 29aae29fb7..26ef8e3ee0 100644 --- a/app/src/main/java/ani/dantotsu/media/anime/ExoplayerView.kt +++ b/app/src/main/java/ani/dantotsu/media/anime/ExoplayerView.kt @@ -132,7 +132,6 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL private lateinit var exoSubtitle: ImageButton private lateinit var exoSubtitleView: SubtitleView private lateinit var exoRotate: ImageButton - private lateinit var exoQuality: ImageButton private lateinit var exoSpeed: ImageButton private lateinit var exoScreen: ImageButton private lateinit var exoNext: ImageButton @@ -371,7 +370,6 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL } playerView = findViewById(R.id.player_view) - exoQuality = playerView.findViewById(R.id.exo_quality) exoPlay = playerView.findViewById(androidx.media3.ui.R.id.exo_play) exoSource = playerView.findViewById(R.id.exo_source) exoSettings = playerView.findViewById(R.id.exo_settings) @@ -1736,13 +1734,6 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL } } println("Track: ${tracks.groups.size}") - if (tracks.groups.size <= 2) exoQuality.visibility = View.GONE - else { - exoQuality.visibility = View.VISIBLE - exoQuality.setOnClickListener { - initPopupQuality().show() - } - } } override fun onPlayerError(error: PlaybackException) { @@ -1830,20 +1821,6 @@ class ExoplayerView : AppCompatActivity(), Player.Listener, SessionAvailabilityL finishAndRemoveTask() } - // QUALITY SELECTOR - private fun initPopupQuality(): Dialog { - - val trackSelectionDialogBuilder = - TrackSelectionDialogBuilder(this, "Available Qualities", exoPlayer, TRACK_TYPE_VIDEO) - trackSelectionDialogBuilder.setTheme(R.style.DialogTheme) - trackSelectionDialogBuilder.setTrackNameProvider { - if (it.frameRate > 0f) it.height.toString() + "p" else it.height.toString() + "p (fps : N/A)" - } - val trackDialog = trackSelectionDialogBuilder.build() - trackDialog.setOnDismissListener { hideSystemBars() } - return trackDialog - } - // Cast private fun cast() { val videoURL = video?.file?.url ?: return diff --git a/app/src/main/res/layout/exo_player_control_view.xml b/app/src/main/res/layout/exo_player_control_view.xml index 0b35123159..cccc11a0bb 100644 --- a/app/src/main/res/layout/exo_player_control_view.xml +++ b/app/src/main/res/layout/exo_player_control_view.xml @@ -127,17 +127,6 @@ app:layout_constraintEnd_toEndOf="parent" tools:ignore="ContentDescription,SpeakableTextPresentCheck" /> - -