OSDN Git Service

Enable the feature of switching the candidate pages
[android-x86/packages-inputmethods-PinyinIME.git] / src / com / android / inputmethod / pinyin / CandidateView.java
index 8dc1bf1..7a9429c 100644 (file)
@@ -30,6 +30,7 @@ import android.graphics.Paint.FontMetricsInt;
 import android.graphics.drawable.Drawable;
 import android.os.Handler;
 import android.util.AttributeSet;
+import android.util.Log;
 import android.view.GestureDetector;
 import android.view.MotionEvent;
 import android.view.View;
@@ -263,7 +264,10 @@ public class CandidateView extends View {
         setMeasuredDimension(getDefaultSize(getSuggestedMinimumWidth(),
                 widthMeasureSpec), getDefaultSize(getSuggestedMinimumHeight(),
                 heightMeasureSpec));
-
+        
+        Log.i("CandidateView","mMeasuredWidth: " + mMeasuredWidth + "  mMeasuredHeight:"
+                       + mMeasuredHeight + "  mOldWidth:" + mOldWidth + "  mOldHeight:" + mOldHeight);
+        mOldHeight = mMeasuredHeight;
         if (mOldWidth != mMeasuredWidth || mOldHeight != mMeasuredHeight) {
             onSizeChanged();
         }