Skip to content

Commit

Permalink
--Fix mini player overlapping navigation bar (libre-tube#5692)
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Mar 3, 2024
1 parent 84440b3 commit 1e3c8f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import androidx.activity.addCallback
import androidx.activity.viewModels
import androidx.appcompat.widget.SearchView
import androidx.constraintlayout.widget.ConstraintSet
import androidx.constraintlayout.widget.ConstraintSet.Constraint
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.core.os.bundleOf
import androidx.core.view.allViews
Expand Down Expand Up @@ -170,7 +169,7 @@ class MainActivity : BaseActivity() {

R.id.searchResultFragment -> {
navController.popBackStack(R.id.searchFragment, true) ||
navController.popBackStack()
navController.popBackStack()
}

else -> {
Expand Down Expand Up @@ -457,7 +456,8 @@ class MainActivity : BaseActivity() {
linLayout.isVisible = true
playerMotionLayout.setTransitionDuration(250)
playerMotionLayout.transitionToEnd()
playerMotionLayout.getConstraintSet(R.id.start).constrainHeight(R.id.player, ConstraintSet.WRAP_CONTENT)
playerMotionLayout.getConstraintSet(R.id.start)
.constrainHeight(R.id.player, ConstraintSet.WRAP_CONTENT)
playerMotionLayout.enableTransition(R.id.yt_transition, true)
}
(fragment as? AudioPlayerFragment)?.binding?.apply {
Expand Down

0 comments on commit 1e3c8f4

Please sign in to comment.