diff options
author | daneren2005 <daneren2005@gmail.com> | 2013-11-04 10:19:16 -0800 |
---|---|---|
committer | daneren2005 <daneren2005@gmail.com> | 2013-11-04 10:19:16 -0800 |
commit | 99142c7c2a3984015238db0f9ac52af51f9f7769 (patch) | |
tree | 58ca1a51f8a6769a0a2961d4715f09f88cfa6ad6 /src/github/daneren2005 | |
parent | a17598626cd9ba5d02b18a4c638476d533693ba2 (diff) | |
download | dsub-99142c7c2a3984015238db0f9ac52af51f9f7769.tar.gz dsub-99142c7c2a3984015238db0f9ac52af51f9f7769.tar.bz2 dsub-99142c7c2a3984015238db0f9ac52af51f9f7769.zip |
Fix swiping being broken with drawer layout
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 3576c12f..3859d58d 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -195,6 +195,16 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte };
drawer.setDrawerListener(drawerToggle);
drawerToggle.setDrawerIndicatorEnabled(false);
+
+ drawer.setOnTouchListener(new View.OnTouchListener() {
+ public boolean onTouch(View v, MotionEvent event) {
+ if(currentFragment != null && currentFragment.getGestureDetector() != null) {
+ return currentFragment.getGestureDetector().onTouchEvent(event);
+ } else {
+ return false;
+ }
+ }
+ });
// Check whether this is a tablet or not
secondaryContainer = findViewById(R.id.fragment_second_container);
|