diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/fragments/DownloadFragment.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/fragments/DownloadFragment.java b/src/github/daneren2005/dsub/fragments/DownloadFragment.java index fb1979b5..9b634aac 100644 --- a/src/github/daneren2005/dsub/fragments/DownloadFragment.java +++ b/src/github/daneren2005/dsub/fragments/DownloadFragment.java @@ -1268,10 +1268,9 @@ public class DownloadFragment extends SubsonicFragment implements OnGestureListe @Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
DownloadService downloadService = getDownloadService();
- if (downloadService == null) {
+ if (downloadService == null || e1 == null || e2 == null) {
return false;
}
- Log.d(TAG, "onFling");
// Right to Left swipe
if (e1.getX() - e2.getX() > swipeDistance && Math.abs(velocityX) > swipeVelocity) {
|