mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
commit
337a3acb9a
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user