summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-12-03 00:20:06 -0800
committerDianne Hackborn <hackbod@google.com>2010-12-03 00:20:06 -0800
commit8c8df623b7097b008856c28b874a99a231eb278a (patch)
tree8741118834c4716b717aaf5f449dec984bc6655f
parentf0b45dc1745cdd5530f693fcceb12c18846a01f5 (diff)
downloadPinyinIME-8c8df623b7097b008856c28b874a99a231eb278a.tar.gz
No longer use this private API.
Change-Id: I9b748f1ddfddb8d0a27b26fc72dfc1756c1438b0
-rw-r--r--src/com/android/inputmethod/pinyin/CandidateView.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/inputmethod/pinyin/CandidateView.java b/src/com/android/inputmethod/pinyin/CandidateView.java
index 8dc1bf1..9a0441c 100644
--- a/src/com/android/inputmethod/pinyin/CandidateView.java
+++ b/src/com/android/inputmethod/pinyin/CandidateView.java
@@ -257,14 +257,14 @@ public class CandidateView extends View {
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
- int mOldWidth = mMeasuredWidth;
- int mOldHeight = mMeasuredHeight;
+ int mOldWidth = getMeasuredWidth();
+ int mOldHeight = getMeasuredHeight();
setMeasuredDimension(getDefaultSize(getSuggestedMinimumWidth(),
widthMeasureSpec), getDefaultSize(getSuggestedMinimumHeight(),
heightMeasureSpec));
- if (mOldWidth != mMeasuredWidth || mOldHeight != mMeasuredHeight) {
+ if (mOldWidth != getMeasuredWidth() || mOldHeight != getMeasuredHeight()) {
onSizeChanged();
}
}
@@ -361,8 +361,8 @@ public class CandidateView extends View {
}
private void onSizeChanged() {
- mContentWidth = mMeasuredWidth - mPaddingLeft - mPaddingRight;
- mContentHeight = (int) ((mMeasuredHeight - mPaddingTop - mPaddingBottom) * 0.95f);
+ mContentWidth = getMeasuredWidth() - mPaddingLeft - mPaddingRight;
+ mContentHeight = (int) ((getMeasuredHeight() - mPaddingTop - mPaddingBottom) * 0.95f);
/**
* How to decide the font size if the height for display is given?
* Now it is implemented in a stupid way.
@@ -409,8 +409,8 @@ public class CandidateView extends View {
private boolean calculatePage(int pageNo) {
if (pageNo == mPageNoCalculated) return true;
- mContentWidth = mMeasuredWidth - mPaddingLeft - mPaddingRight;
- mContentHeight = (int) ((mMeasuredHeight - mPaddingTop - mPaddingBottom) * 0.95f);
+ mContentWidth = getMeasuredWidth() - mPaddingLeft - mPaddingRight;
+ mContentHeight = (int) ((getMeasuredHeight() - mPaddingTop - mPaddingBottom) * 0.95f);
if (mContentWidth <= 0 || mContentHeight <= 0) return false;