From 9fee0973481c3bfbccd898143bf4cd6bef6e44a7 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Wed, 19 Mar 2014 22:51:47 -0700 Subject: Fix random crash --- src/github/daneren2005/dsub/activity/DownloadActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/github/daneren2005') diff --git a/src/github/daneren2005/dsub/activity/DownloadActivity.java b/src/github/daneren2005/dsub/activity/DownloadActivity.java index fcdc69de..92a99325 100644 --- a/src/github/daneren2005/dsub/activity/DownloadActivity.java +++ b/src/github/daneren2005/dsub/activity/DownloadActivity.java @@ -53,7 +53,7 @@ public class DownloadActivity extends SubsonicActivity { @Override public boolean onTouchEvent(MotionEvent me) { - if(currentFragment != null) { + if(currentFragment != null && currentFragment.getGestureDetector() != null) { return currentFragment.getGestureDetector().onTouchEvent(me); } else { return false; -- cgit v1.2.3