aboutsummaryrefslogtreecommitdiff
path: root/src/github/daneren2005
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-01-07 06:37:09 -0800
committerScott Jackson <daneren2005@gmail.com>2014-01-07 06:37:09 -0800
commit331e908f45587c99172cefb47744cf690843fb70 (patch)
treea9661c97269a6c13fd7eb14a09caa055b24be3de /src/github/daneren2005
parent5c81265be07c6991761dcf5baae7e9464571eeb2 (diff)
downloaddsub-331e908f45587c99172cefb47744cf690843fb70.tar.gz
dsub-331e908f45587c99172cefb47744cf690843fb70.tar.bz2
dsub-331e908f45587c99172cefb47744cf690843fb70.zip
Fix a crash in logs
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r--src/github/daneren2005/dsub/fragments/DownloadFragment.java3
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) {