Skip to content

Commit ac68ea4

Browse files
authored
Merge pull request #62 from omkar-tenkale/master
Fixed Reselecting already selected tab doesn't fire listener
2 parents 84583eb + 9d097af commit ac68ea4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

navigationtabstrip/src/main/java/com/gigamole/navigationtabstrip/NavigationTabStrip.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,11 @@ public void setTabIndex(int tabIndex, boolean isForce) {
518518
// This check gives us opportunity to have an non selected tab
519519
if (mIndex == INVALID_INDEX) force = true;
520520

521+
//Don't do,lets see if this helps us fix bug when reselcting selected tab doesnt fire listener
522+
// {
521523
// Detect if last is the same
522-
if (index == mIndex) return;
524+
// if (index == mIndex) return;
525+
// }
523526

524527
// Snap index to tabs size
525528
index = Math.max(0, Math.min(index, mTitles.length - 1));
@@ -898,4 +901,4 @@ public interface OnTabStripSelectedIndexListener {
898901

899902
void onEndTabSelected(final String title, final int index);
900903
}
901-
}
904+
}

0 commit comments

Comments
 (0)