Skip to content

Commit

Permalink
buildSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
onestravel committed Mar 1, 2021
1 parent 24f58dc commit d73a872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,9 @@ class OneBottomNavigationBar : View {
return
}
try {
if (!item.showFragment) {
return
}
if (mViewPager != null) {
showPosition = if (vpPosition == -1) {
if (needChangePos(position)) {
Expand All @@ -201,14 +204,11 @@ class OneBottomNavigationBar : View {
mViewPager?.currentItem = showPosition
} else if (manager != null || containerView != null || containerView is ViewGroup || containerView!!.id != View.NO_ID) {
showPosition = position;
if (item.showFragment) {
val fragment = fragmentMap[item.id]
?: throw RuntimeException("[" + item.id + "] fragment is null ")
selectFragmentByManager(fragment)
}
val fragment = fragmentMap[item.id]
?: throw RuntimeException("[" + item.id + "] fragment is null ")
selectFragmentByManager(fragment)
}


} catch (e: Exception) {
e.printStackTrace()
}
Expand Down
2 changes: 1 addition & 1 deletion project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ project.groupId=cn.onestravel.one
project.description=OneBottomNavigationBar is a custom View that implements the function of the navigation bar at the bottom of the App. It can achieve 2-5 navigation menus at the bottom (generally there are no more), and can achieve the effect of a certain menu. You can choose to make the third menu floating. This is a function that many apps have; you can change the color of icons and text when selected and unselected according to the resource file of the color change. You can freely control whether You need to check (checkable). When you select On, you can change to the selected color. When you select Off, you cannot change to the selected color. You can control which item is selected by default. You can set the number of unread messages (number or small red) in a navigation menu. point)
project.artifact=one_bottom_navigationbar
project.packaging=aar
project.version=1.2.4-beta
project.version=1.2.4-beta2
project.siteUrl=https://github.com/onestravel/OneBottomNavigationBar
project.gitUrl=https://github.com/onestravel/OneBottomNavigationBar.git
project.licenseName=The Apache Software License, Version 2.0
Expand Down

0 comments on commit d73a872

Please sign in to comment.