mirror of
https://github.com/Tencent/QMUI_Android.git
synced 2026-10-26 01:30:48 +08:00
@@ -268,17 +268,6 @@ public class QMUIBasicTabSegment extends HorizontalScrollView implements IQMUILa
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* clear select info
|
||||
*/
|
||||
public void resetSelect() {
|
||||
mCurrentSelectedIndex = NO_POSITION;
|
||||
if (mSelectAnimator != null) {
|
||||
mSelectAnimator.cancel();
|
||||
mSelectAnimator = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* add a tab to QMUITabSegment
|
||||
@@ -296,10 +285,7 @@ public class QMUIBasicTabSegment extends HorizontalScrollView implements IQMUILa
|
||||
* notify dataChanged event to QMUITabSegment
|
||||
*/
|
||||
public void notifyDataChanged() {
|
||||
int current = mCurrentSelectedIndex;
|
||||
resetSelect();
|
||||
mTabAdapter.setup();
|
||||
selectTab(current);
|
||||
}
|
||||
|
||||
public void addOnTabSelectedListener(@NonNull OnTabSelectedListener listener) {
|
||||
|
||||
Reference in New Issue
Block a user