Skip to content

Commit

Permalink
exposed onMenuItemClick listener as a public API
Browse files Browse the repository at this point in the history
  • Loading branch information
susonthapa committed Oct 7, 2020
1 parent 604964c commit 4893a41
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class CurvedBottomNavigationView @JvmOverloads constructor(
addView(bottomNavLayout, bottomNavLayoutParams)
}

private fun onMenuItemClick(index: Int) {
fun onMenuItemClick(index: Int) {
if (selectedIndex == index) {
Log.i(TAG, "same icon multiple clicked, skipping animation!")
return
Expand Down

0 comments on commit 4893a41

Please sign in to comment.