roughike / BottomBar

(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.
Apache License 2.0
8.43k stars 1.51k forks source link

Fix: wrong getCurrentTabPosition value when called from OnTabSelectLi… #873

Open fentino opened 6 years ago

fentino commented 6 years ago

…stener

Fixes this:

bottomBar.setOnTabSelectListener { tabResId ->
    bottomBar.getCurrentTabPosition() // wrong value - I get the previous one not the current one
}