Swipe-to-refresh fixes
This commit is contained in:
@@ -154,10 +154,11 @@ public class KeyListFragment extends LoaderFragment
|
|||||||
mSwipeRefreshLayout.setOnTouchListener(new View.OnTouchListener() {
|
mSwipeRefreshLayout.setOnTouchListener(new View.OnTouchListener() {
|
||||||
@Override
|
@Override
|
||||||
public boolean onTouch(View v, MotionEvent event) {
|
public boolean onTouch(View v, MotionEvent event) {
|
||||||
if (event.getAction() == MotionEvent.ACTION_DOWN) {
|
if (event.getAction() == MotionEvent.ACTION_MOVE) {
|
||||||
updateActionbarForSwipe(true);
|
updateActionbarForSwipe(true);
|
||||||
} else {
|
} else {
|
||||||
updateActionbarForSwipe(false);
|
updateActionbarForSwipe(false);
|
||||||
|
mSwipeRefreshLayout.setRefreshing(false);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user