[go: nahoru, domu]

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

Commit

Permalink
[WEEX-487][Android] bug fix: scrollable="false" not work on android
Browse files Browse the repository at this point in the history
  • Loading branch information
luckybilly authored and YorkShen committed Jul 4, 2018
1 parent c354d2b commit 35fd205
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,7 @@ public void setIndex(int index) {
@WXComponentProp(name = Constants.Name.SCROLLABLE)
public void setScrollable(boolean scrollable) {
if (mViewPager != null && mAdapter != null) {
if(mAdapter.getRealCount() > 0){
mViewPager.setScrollable(scrollable);
}
mViewPager.setScrollable(scrollable);
}
}

Expand Down

0 comments on commit 35fd205

Please sign in to comment.