chrisbanes/Android-PullToRefresh — pull request #34 by mcxiaoke (2012-01-31 06:45:51+00:00)
Title: add missing constructor and init method

Add missing constructor for PullToRefreshListView with mode and without use xml layout, AttributeSet is not need for this way.

Add missing init method without use xml layout for PullToRefreshBase.

init(Context context) is just copied from original init(Context context, AttributeSet attrs) , attrs related code is removed.

I use these two small patches to avoid null pointer exception for uninitialized header and footer layouts when using PullToRefreshListView programmatic (in code instead of using in xml layout ) with MODE_BOTH.