ncapdevi / FragNav

An Android library for managing multiple stacks of fragments
1.5k stars 220 forks source link

On Tab Reselected called in wrong time #197

Closed KaeMs closed 5 years ago

KaeMs commented 5 years ago

I have 4 tabs, let's just call them A B C D, and A is my initial tab.

Here's the chronological order :

  1. I press on B, onTabSelected gets called
  2. I press back, I return to A
  3. I press B again, I stay at A. Here, OnTabReselected is called.

Intuitively, it should call OnTabSelected again as I am at A right now, not calling B. Why does it call OnTabReselected instead?

ncapdevi commented 5 years ago

You're talking about a different library. Please post any BottomBar issues there https://github.com/roughike/BottomBar

KaeMs commented 5 years ago

I am actually using the TabLayout from Android, lemme try that one called AHBottomNavigation real quick

KaeMs commented 5 years ago

Ok nevermind, when I changed to AHBN, the callback works really well!