Merge pull request #2657 from Bnyro/master

Cleanup
This commit is contained in:
Bnyro 2023-01-10 20:21:06 +01:00 committed by GitHub
commit 337a3acb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,6 @@ import androidx.annotation.RequiresApi
import androidx.constraintlayout.motion.widget.MotionLayout import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.core.net.toUri import androidx.core.net.toUri
import androidx.core.os.bundleOf import androidx.core.os.bundleOf
import androidx.core.os.postDelayed
import androidx.core.view.isVisible import androidx.core.view.isVisible
import androidx.fragment.app.activityViewModels import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle import androidx.lifecycle.Lifecycle
@ -1207,7 +1206,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
*/ */
private fun getAvailableResolutions(): List<VideoResolution> { private fun getAvailableResolutions(): List<VideoResolution> {
val resolutions = exoPlayer.currentTracks.groups.map { group -> val resolutions = exoPlayer.currentTracks.groups.map { group ->
(0..group.length - 1).map { (0 until group.length).map {
group.getTrackFormat(it).width group.getTrackFormat(it).width
} }
}.flatten() }.flatten()