diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-18 14:03:21 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-09-18 14:03:21 +0200 |
commit | e019752a282cd306b2433debffcef0ae6960d895 (patch) | |
tree | 555cd23a011b8d96cef34f2be4cbfbc2ef759013 | |
parent | ac66f6cc1043cf79896cf063be2358a0b08e2ac5 (diff) | |
download | open-keychain-e019752a282cd306b2433debffcef0ae6960d895.tar.gz open-keychain-e019752a282cd306b2433debffcef0ae6960d895.tar.bz2 open-keychain-e019752a282cd306b2433debffcef0ae6960d895.zip |
Swipe-to-refresh fixes
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java index 8603b5e8c..ffcb1955b 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/KeyListFragment.java @@ -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; } |