From f6929ee00c26a0fa023ee0646cd000bb3c5f4e13 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 15 Sep 2022 15:56:09 +0200 Subject: [PATCH] fix shadowing --- .../main/java/com/github/libretube/fragments/PlayerFragment.kt | 2 -- 1 file changed, 2 deletions(-) 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) {