Skip to content

Commit

Permalink
Test reselecting tab doesnt fire listener
Browse files Browse the repository at this point in the history
lets see if this helps us fix bug when reselcting selected tab doesnt fire listener
  • Loading branch information
omkar-tenkale authored Sep 21, 2020
1 parent 84583eb commit 9d097af
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,8 +518,11 @@ public void setTabIndex(int tabIndex, boolean isForce) {
// This check gives us opportunity to have an non selected tab
if (mIndex == INVALID_INDEX) force = true;

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

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

void onEndTabSelected(final String title, final int index);
}
}
}

0 comments on commit 9d097af

Please sign in to comment.