diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index 1f70bbba3..a60ea1b94 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -357,7 +357,6 @@ class PlayerFragment : BaseFragment() { endId: Int, progress: Float ) { - val mainActivity = activity as MainActivity val mainMotionLayout = mainActivity.binding.mainMotionLayout mainMotionLayout.progress = abs(progress) @@ -368,7 +367,6 @@ class PlayerFragment : BaseFragment() { override fun onTransitionCompleted(motionLayout: MotionLayout?, currentId: Int) { println(currentId) - val mainActivity = activity as MainActivity val mainMotionLayout = mainActivity.binding.mainMotionLayout if (currentId == eId) {