fix shadowing

This commit is contained in:
Bnyro 2022-09-15 15:56:09 +02:00
parent f6c0a2bc15
commit f6929ee00c

View File

@ -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) {