diff --git a/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxGLSurfaceView.java b/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxGLSurfaceView.java index 5c719f999c..fc1ae21f5d 100644 --- a/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxGLSurfaceView.java +++ b/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxGLSurfaceView.java @@ -257,9 +257,11 @@ public class Cocos2dxGLSurfaceView extends GLSurfaceView { break; } + /* if (BuildConfig.DEBUG) { Cocos2dxGLSurfaceView.dumpMotionEvent(pMotionEvent); } + */ return true; } diff --git a/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxTextInputWraper.java b/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxTextInputWraper.java index e3a4685e4d..0f5c7f6d4a 100644 --- a/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxTextInputWraper.java +++ b/cocos2dx/platform/android/java/src/org/cocos2dx/lib/Cocos2dxTextInputWraper.java @@ -79,22 +79,26 @@ public class Cocos2dxTextInputWraper implements TextWatcher, OnEditorActionListe return; } - if (BuildConfig.DEBUG) { - Log.d(TAG, "afterTextChanged: " + s); - } + //if (BuildConfig.DEBUG) { + //Log.d(TAG, "afterTextChanged: " + s); + //} int nModified = s.length() - this.mText.length(); if (nModified > 0) { final String insertText = s.subSequence(this.mText.length(), s.length()).toString(); this.mCocos2dxGLSurfaceView.insertText(insertText); + /* if (BuildConfig.DEBUG) { Log.d(TAG, "insertText(" + insertText + ")"); } + */ } else { for (; nModified < 0; ++nModified) { this.mCocos2dxGLSurfaceView.deleteBackward(); + /* if (BuildConfig.DEBUG) { Log.d(TAG, "deleteBackward"); } + */ } } this.mText = s.toString(); @@ -102,9 +106,11 @@ public class Cocos2dxTextInputWraper implements TextWatcher, OnEditorActionListe @Override public void beforeTextChanged(final CharSequence pCharSequence, final int start, final int count, final int after) { + /* if (BuildConfig.DEBUG) { Log.d(TAG, "beforeTextChanged(" + pCharSequence + ")start: " + start + ",count: " + count + ",after: " + after); } + */ this.mText = pCharSequence.toString(); } @@ -119,9 +125,11 @@ public class Cocos2dxTextInputWraper implements TextWatcher, OnEditorActionListe // user press the action button, delete all old text and insert new text for (int i = this.mOriginText.length(); i > 0; i--) { this.mCocos2dxGLSurfaceView.deleteBackward(); + /* if (BuildConfig.DEBUG) { Log.d(TAG, "deleteBackward"); } + */ } String text = pTextView.getText().toString(); @@ -136,9 +144,11 @@ public class Cocos2dxTextInputWraper implements TextWatcher, OnEditorActionListe final String insertText = text; this.mCocos2dxGLSurfaceView.insertText(insertText); + /* if (BuildConfig.DEBUG) { Log.d(TAG, "insertText(" + insertText + ")"); } + */ } return false; } diff --git a/tools/jenkins_scripts/build.xml b/tools/jenkins_scripts/build.xml index dc1291ca26..06c54399fb 100644 --- a/tools/jenkins_scripts/build.xml +++ b/tools/jenkins_scripts/build.xml @@ -51,7 +51,7 @@ - +