diff --git a/app/src/main/java/com/github/libretube/extensions/UpdateParameters.kt b/app/src/main/java/com/github/libretube/extensions/UpdateParameters.kt index 6ce00846d..23d93231b 100644 --- a/app/src/main/java/com/github/libretube/extensions/UpdateParameters.kt +++ b/app/src/main/java/com/github/libretube/extensions/UpdateParameters.kt @@ -2,9 +2,6 @@ package com.github.libretube.extensions import com.google.android.exoplayer2.trackselection.DefaultTrackSelector -fun DefaultTrackSelector.updateParameters( +inline fun DefaultTrackSelector.updateParameters( actions: DefaultTrackSelector.Parameters.Builder.() -> Unit -) = apply { - val params = buildUponParameters().apply(actions) - setParameters(params) -} +) = setParameters(buildUponParameters().apply(actions))