android:fix NestedSlider onPageSelected call twice

This commit is contained in:
pengfei.zhou 2021-07-30 17:25:58 +08:00 committed by osborn
parent e1032721f1
commit 160a85767a

View File

@ -245,9 +245,6 @@ public class NestedSliderNode extends GroupNode<ViewPager> implements ViewPager.
int page = params.getProperty("page").asNumber().toInt(); int page = params.getProperty("page").asNumber().toInt();
boolean smooth = params.getProperty("smooth").asBoolean().value(); boolean smooth = params.getProperty("smooth").asBoolean().value();
mView.setCurrentItem(page, smooth); mView.setCurrentItem(page, smooth);
if (!TextUtils.isEmpty(onPageSlidedFuncId)) {
callJSResponse(onPageSlidedFuncId, page);
}
promise.resolve(); promise.resolve();
} }