[Android] SlidingMenu: disable two annoying debugs

Ludovic Fauvet git at videolan.org
Thu Oct 11 18:30:56 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Thu Oct 11 18:29:02 2012 +0200| [db99b9f9673a0dd755bb814b658245f9bce5fdc3] | committer: Ludovic Fauvet

SlidingMenu: disable two annoying debugs

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=db99b9f9673a0dd755bb814b658245f9bce5fdc3
---

 java-libs/SlidingMenu/src/com/slidingmenu/lib/CustomViewAbove.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/java-libs/SlidingMenu/src/com/slidingmenu/lib/CustomViewAbove.java b/java-libs/SlidingMenu/src/com/slidingmenu/lib/CustomViewAbove.java
index 7eb4256..e4268be 100644
--- a/java-libs/SlidingMenu/src/com/slidingmenu/lib/CustomViewAbove.java
+++ b/java-libs/SlidingMenu/src/com/slidingmenu/lib/CustomViewAbove.java
@@ -682,7 +682,7 @@ public class CustomViewAbove extends ViewGroup {
 		final int action = ev.getAction() & MotionEventCompat.ACTION_MASK;
 
 		if (action == MotionEvent.ACTION_DOWN)
-			Log.v(TAG, "Received ACTION_DOWN");
+			if (DEBUG) Log.v(TAG, "Received ACTION_DOWN");
 			
 		if (action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) {
 			mIsBeingDragged = false;
@@ -727,7 +727,7 @@ public class CustomViewAbove extends ViewGroup {
 		case MotionEvent.ACTION_DOWN:
 			mActivePointerId = ev.getAction() & ((Build.VERSION.SDK_INT >= 8) ? MotionEvent.ACTION_POINTER_INDEX_MASK : 
 				MotionEvent.ACTION_POINTER_ID_MASK);
-			Log.v(TAG, "active pointer id : " + mActivePointerId);
+			if (DEBUG) Log.v(TAG, "active pointer id : " + mActivePointerId);
 			mLastMotionX = mInitialMotionX = MotionEventCompat.getX(ev, mActivePointerId);
 			mLastMotionY = MotionEventCompat.getY(ev, mActivePointerId);
 			if (thisTouchAllowed(ev)) {



More information about the Android mailing list