diff options
author | 2014-02-17 18:12:12 -0800 | |
---|---|---|
committer | 2014-02-17 18:12:12 -0800 | |
commit | b512946c902faff56d6d63c568e2e3fb602a3512 (patch) | |
tree | c4af2dd6a28e54c2a99aa777fab605380f656604 /java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | |
parent | 4d467675858fe1d025d6b9e7f7f8b5bbfc042f63 (diff) | |
parent | affdd364232549d2062fc180f924f5b6496c26fd (diff) | |
download | latinime-b512946c902faff56d6d63c568e2e3fb602a3512.tar.gz latinime-b512946c902faff56d6d63c568e2e3fb602a3512.tar.xz latinime-b512946c902faff56d6d63c568e2e3fb602a3512.zip |
am affdd364: Set neutral suggestions should be called after load settings
* commit 'affdd364232549d2062fc180f924f5b6496c26fd':
Set neutral suggestions should be called after load settings
Diffstat (limited to 'java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java index 90b9692c3..1f80c4cca 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionStripView.java @@ -233,7 +233,9 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick return false; } final int width = getWidth(); - if (width <= 0) return false; + if (width <= 0) { + return false; + } mLayoutHelper.layoutImportantNotice(mImportantNoticeStrip, width); mStripVisibilityGroup.showImportantNoticeStrip(); mImportantNoticeStrip.setOnClickListener(this); @@ -429,9 +431,11 @@ public final class SuggestionStripView extends RelativeLayout implements OnClick } @Override - protected void onSizeChanged(int w, int h, int oldw, int oldh) { + protected void onSizeChanged(final int w, final int h, final int oldw, final int oldh) { // Called by the framework when the size is known. Show the important notice if applicable. // This may be overriden by showing suggestions later, if applicable. - maybeShowImportantNoticeTitle(Settings.getInstance().getCurrent().mInputAttributes); + if (oldw <= 0 && w > 0) { + maybeShowImportantNoticeTitle(Settings.getInstance().getCurrent().mInputAttributes); + } } } |