android:fix NestedSlider onPageSelected call twice
This commit is contained in:
parent
e1032721f1
commit
160a85767a
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user