Modify api of PullToRefreshBase