fix: mini player overlaps navigation bar (#5694)

This commit is contained in:
Muhammad Khubaib Imtiaz 2024-03-05 22:21:53 +05:00 committed by GitHub
parent 27e6d76de9
commit a526015668
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,7 @@ import android.widget.ScrollView
import androidx.activity.addCallback
import androidx.activity.viewModels
import androidx.appcompat.widget.SearchView
import androidx.constraintlayout.widget.ConstraintSet
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.core.os.bundleOf
import androidx.core.view.allViews
@ -168,7 +169,7 @@ class MainActivity : BaseActivity() {
R.id.searchResultFragment -> {
navController.popBackStack(R.id.searchFragment, true) ||
navController.popBackStack()
navController.popBackStack()
}
else -> {
@ -455,7 +456,8 @@ class MainActivity : BaseActivity() {
linLayout.isVisible = true
playerMotionLayout.setTransitionDuration(250)
playerMotionLayout.transitionToEnd()
playerMotionLayout.getConstraintSet(R.id.start).constrainHeight(R.id.player, 0)
playerMotionLayout.getConstraintSet(R.id.start)
.constrainHeight(R.id.player, ConstraintSet.WRAP_CONTENT)
playerMotionLayout.enableTransition(R.id.yt_transition, true)
}
(fragment as? AudioPlayerFragment)?.binding?.apply {