Add detail navigation
This commit is contained in:
parent
4a87a900be
commit
ec47bc3d2e
34 changed files with 381 additions and 324 deletions
|
@ -85,7 +85,6 @@ class MainActivity : AbsSlidingMusicPanelActivity(),
|
|||
PreferenceUtil.unregisterOnSharedPreferenceChangedListener(this)
|
||||
}
|
||||
|
||||
|
||||
override fun requestPermissions() {
|
||||
if (!blockRequestPermissions) {
|
||||
super.requestPermissions()
|
||||
|
@ -180,7 +179,6 @@ class MainActivity : AbsSlidingMusicPanelActivity(),
|
|||
}
|
||||
|
||||
override fun handleBackPress(): Boolean {
|
||||
getBottomNavigationView().menu.getItem(0).isChecked = true
|
||||
if (cab != null && cab!!.isActive) {
|
||||
cab?.finish()
|
||||
return true
|
||||
|
|
|
@ -118,7 +118,7 @@ abstract class AbsSlidingMusicPanelActivity() : AbsMusicServiceActivity() {
|
|||
return slidingMusicPanelLayout
|
||||
}
|
||||
|
||||
private fun collapsePanel() {
|
||||
fun collapsePanel() {
|
||||
behavior.state = BottomSheetBehavior.STATE_COLLAPSED
|
||||
}
|
||||
|
||||
|
@ -302,7 +302,8 @@ abstract class AbsSlidingMusicPanelActivity() : AbsMusicServiceActivity() {
|
|||
|
||||
fun hideBottomNavigation() {
|
||||
behavior.isHideable = true
|
||||
behavior.state == BottomSheetBehavior.STATE_HIDDEN
|
||||
behavior.peekHeight = 0
|
||||
setBottomBarVisibility(View.GONE)
|
||||
}
|
||||
|
||||
fun updateTabs() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue