Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[Android] Fix show-indicators doesn't work. (#2746)
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen authored and lucky-chen committed Jul 23, 2019
1 parent 1d81470 commit 7e7bec0
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -91,7 +91,7 @@ public WXComponent createInstance(WXSDKInstance instance, WXVContainer parent, B
*/
protected WXCirclePageAdapter mAdapter;

protected boolean mShowIndicators;
protected boolean mShowIndicators = true;

protected OnPageChangeListener mPageChangeListener = new SliderPageChangeListener();

Expand Down Expand Up @@ -264,6 +264,7 @@ public void addIndicator(WXIndicator indicator) {
return;
}
mIndicator = indicator;
mIndicator.setShowIndicators(mShowIndicators);
WXCircleIndicator indicatorView = indicator.getHostView();
if (indicatorView != null) {
indicatorView.setCircleViewPager(mViewPager);
Expand Down

0 comments on commit 7e7bec0

Please sign in to comment.