Merge pull request #1300 from Bnyro/master

linter: fix shadowing
This commit is contained in:
Bnyro 2022-09-15 16:00:38 +02:00 committed by GitHub
commit 0992fc930c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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