Swipe-to-refresh fixes

This commit is contained in:
Dominik Schürmann committed 2014-09-18 14:03:21 +02:00
1 parent ac66f6cc10
commit e019752a28
1 file changed
+2 -1
@@ -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;
}