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

Commit

Permalink
[WEEX][Android] When LoadMore Offset Is Float, Exception Happen LOADM…
Browse files Browse the repository at this point in the history
…ORE Function Loss (#2070)
  • Loading branch information
gubaojian authored and YorkShen committed Jan 22, 2019
1 parent 8ae9853 commit 23079b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,9 @@ public void onLoadMore(int offScreenY) {
if (TextUtils.isEmpty(offset)) {
offset = "0";
}
float offsetParsed = WXViewUtils.getRealPxByWidth(Integer.parseInt(offset),getInstance().getInstanceViewPortWidth());


float offsetParsed = WXViewUtils.getRealPxByWidth(WXUtils.getInt(offset),getInstance().getInstanceViewPortWidth());

if (offScreenY <= offsetParsed && getEvents().contains(Constants.Event.LOADMORE)) {
if (mListCellCount != mChildren.size()
Expand Down

0 comments on commit 23079b1

Please sign in to comment.