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, endId: Int,
progress: Float progress: Float
) { ) {
val mainActivity = activity as MainActivity
val mainMotionLayout = val mainMotionLayout =
mainActivity.binding.mainMotionLayout mainActivity.binding.mainMotionLayout
mainMotionLayout.progress = abs(progress) mainMotionLayout.progress = abs(progress)
@ -368,7 +367,6 @@ class PlayerFragment : BaseFragment() {
override fun onTransitionCompleted(motionLayout: MotionLayout?, currentId: Int) { override fun onTransitionCompleted(motionLayout: MotionLayout?, currentId: Int) {
println(currentId) println(currentId)
val mainActivity = activity as MainActivity
val mainMotionLayout = val mainMotionLayout =
mainActivity.binding.mainMotionLayout mainActivity.binding.mainMotionLayout
if (currentId == eId) { if (currentId == eId) {