mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(tabs-android): wrong tabStripItem selected (#7522)
This commit is contained in:
committed by
GitHub
parent
16924f4112
commit
ca22ba9391
@@ -383,7 +383,11 @@ public class TabLayout extends HorizontalScrollView {
|
||||
}
|
||||
|
||||
int prevPosition = mTabStrip.getSelectedPosition();
|
||||
onSelectedPositionChange(position, prevPosition);
|
||||
|
||||
if (prevPosition != position) {
|
||||
onSelectedPositionChange(position, prevPosition);
|
||||
}
|
||||
|
||||
mTabStrip.onViewPagerPageChanged(position, positionOffset);
|
||||
|
||||
View selectedTitle = mTabStrip.getChildAt(position);
|
||||
|
||||
Reference in New Issue
Block a user