Fixed bottom sheet animations
This commit is contained in:
parent
72aedb7e77
commit
3bfacaea77
8 changed files with 48 additions and 39 deletions
|
@ -131,7 +131,7 @@ abstract class AbsPlayerFragment(@LayoutRes layout: Int) : AbsMainActivityFragme
|
|||
}
|
||||
R.id.action_go_to_album -> {
|
||||
//Hide Bottom Bar First, else Bottom Sheet doesn't collapse fully
|
||||
mainActivity.setBottomBarVisibility(false)
|
||||
mainActivity.setBottomNavVisibility(false)
|
||||
mainActivity.collapsePanel()
|
||||
requireActivity().findNavController(R.id.fragment_container).navigate(
|
||||
R.id.albumDetailsFragment,
|
||||
|
@ -386,7 +386,7 @@ fun goToArtist(activity: Activity) {
|
|||
currentFragment(R.id.fragment_container)?.exitTransition = null
|
||||
|
||||
//Hide Bottom Bar First, else Bottom Sheet doesn't collapse fully
|
||||
setBottomBarVisibility(false)
|
||||
setBottomNavVisibility(false)
|
||||
if (getBottomSheetBehavior().state == BottomSheetBehavior.STATE_EXPANDED) {
|
||||
collapsePanel()
|
||||
}
|
||||
|
@ -405,7 +405,7 @@ fun goToAlbum(activity: Activity) {
|
|||
currentFragment(R.id.fragment_container)?.exitTransition = null
|
||||
|
||||
//Hide Bottom Bar First, else Bottom Sheet doesn't collapse fully
|
||||
setBottomBarVisibility(false)
|
||||
setBottomNavVisibility(false)
|
||||
if (getBottomSheetBehavior().state == BottomSheetBehavior.STATE_EXPANDED) {
|
||||
collapsePanel()
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ class LibraryFragment : AbsMainActivityFragment(R.layout.fragment_library) {
|
|||
override fun onActivityCreated(savedInstanceState: Bundle?) {
|
||||
super.onActivityCreated(savedInstanceState)
|
||||
setHasOptionsMenu(true)
|
||||
mainActivity.setBottomBarVisibility(true)
|
||||
mainActivity.setBottomNavVisibility(true)
|
||||
mainActivity.setSupportActionBar(binding.toolbar)
|
||||
mainActivity.supportActionBar?.title = null
|
||||
binding.toolbar.setNavigationOnClickListener {
|
||||
|
|
|
@ -101,12 +101,12 @@ class PlayingQueueRVFragment : AbsRecyclerViewFragment<PlayingQueueAdapter, Line
|
|||
override fun onQueueChanged() {
|
||||
super.onQueueChanged()
|
||||
updateQueue()
|
||||
mainActivity.hideBottomBar(true)
|
||||
mainActivity.hideBottomSheet(true)
|
||||
}
|
||||
|
||||
override fun onPlayingMetaChanged() {
|
||||
updateQueuePosition()
|
||||
mainActivity.hideBottomBar(true)
|
||||
mainActivity.hideBottomSheet(true)
|
||||
}
|
||||
|
||||
private fun updateQueuePosition() {
|
||||
|
|
|
@ -214,7 +214,7 @@ class SearchFragment : AbsMainActivityFragment(R.layout.fragment_search), TextWa
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
mainActivity.setBottomBarVisibility(false)
|
||||
mainActivity.setBottomNavVisibility(false)
|
||||
}
|
||||
|
||||
private fun hideKeyboard(view: View?) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue