Swipe-to-refresh fixes

This commit is contained in:
Dominik Schürmann 2014-09-18 14:03:21 +02:00
parent ac66f6cc10
commit e019752a28

View File

@ -154,10 +154,11 @@ public class KeyListFragment extends LoaderFragment
mSwipeRefreshLayout.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
if (event.getAction() == MotionEvent.ACTION_MOVE) {
updateActionbarForSwipe(true);
} else {
updateActionbarForSwipe(false);
mSwipeRefreshLayout.setRefreshing(false);
}
return false;
}