chrisbanes/Android-PullToRefresh — Issue #40: Pull-To-Reload not working when empty view is shown
Author: pnussbaum1
Created: 2012-03-01 10:59:57+00:00
State: open

Whenever the list shows the emptyView, PTR is not working. The list does not overscroll -> no reload header view is shown.

Debugging a bit through the code showed, that in PullToRefreshBase#onInterceptTouchEvent, MotionEvent.ACTION_MOVE is never triggered. Delegating MotionEvents from the emptyView to the listView did help a bit - but didn't result in the expected behavior: The header disappeared right after releasing and was shown again when reloading was done.

I call PullToRefreshListView#setEmptyView to set the empty view. The rest is straight forward, like it's done in the tutorial.