Skip to content

Commit 6cb5192

Browse files
committed
修复快速下拉无法回弹,或者UI线程繁忙的时候无法下拉刷新BUG
onTouch事件和UI线程属于同一个线程,所以得到的高度不是准确的。
1 parent b7df3d6 commit 6cb5192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/me/maxwin/view/XListViewHeader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void setVisiableHeight(int height) {
122122
}
123123

124124
public int getVisiableHeight() {
125-
return mContainer.getHeight();
125+
return mContainer.getLayoutParams().height;
126126
}
127127

128128
}

0 commit comments

Comments
 (0)