Bubbles cleanup and bug fixes.
diff --git a/src/com/savoirfairelinux/sflphone/views/CallPaneLayout.java b/src/com/savoirfairelinux/sflphone/views/CallPaneLayout.java
new file mode 100644
index 0000000..6227732
--- /dev/null
+++ b/src/com/savoirfairelinux/sflphone/views/CallPaneLayout.java
@@ -0,0 +1,33 @@
+package com.savoirfairelinux.sflphone.views;
+
+import android.content.Context;
+import android.support.v4.widget.SlidingPaneLayout;
+import android.util.AttributeSet;
+import android.view.MotionEvent;
+
+import com.savoirfairelinux.sflphone.fragments.CallFragment;
+
+public class CallPaneLayout extends SlidingPaneLayout
+{
+ public CallFragment curFragment = null;
+
+ public CallPaneLayout(Context context, AttributeSet attrs)
+ {
+ super(context, attrs);
+ }
+
+ public CallPaneLayout(Context context, AttributeSet attrs, int defStyle)
+ {
+ super(context, attrs, defStyle);
+ }
+
+ @Override
+ public boolean onInterceptTouchEvent(MotionEvent event)
+ {
+ if(curFragment!=null && curFragment.draggingBubble()) {
+ return false;
+ }
+ return super.onInterceptTouchEvent(event);
+ }
+
+}