summaryrefslogtreecommitdiff
authorbo.cao <bo.cao@amlogic.com>2011-12-23 09:51:59 (GMT)
committer bo.cao <bo.cao@amlogic.com>2011-12-23 09:51:59 (GMT)
commit6e88a093907f536e2557a2fad043d1bb0a714644 (patch)
treedbca803e72e96573511dfbbe99bcc61e20940b09
parentde214ddb0b28c0252270a1baa63d1a8a09cae3d5 (diff)
downloadRemoteIME-6e88a093907f536e2557a2fad043d1bb0a714644.zip
RemoteIME-6e88a093907f536e2557a2fad043d1bb0a714644.tar.gz
RemoteIME-6e88a093907f536e2557a2fad043d1bb0a714644.tar.bz2
fixed can not run on MBX ICS
Diffstat
-rwxr-xr-xsrc/com/amlogic/inputmethod/remote/CandidateView.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/amlogic/inputmethod/remote/CandidateView.java b/src/com/amlogic/inputmethod/remote/CandidateView.java
index 9a9c7e1..7ad21b0 100755
--- a/src/com/amlogic/inputmethod/remote/CandidateView.java
+++ b/src/com/amlogic/inputmethod/remote/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;