diff options
author | 2011-10-26 17:03:41 +0900 | |
---|---|---|
committer | 2011-10-26 17:03:41 +0900 | |
commit | 0cf7a45ac53eef7399826a548a2ef8dab225bdf0 (patch) | |
tree | fb3e1e1982e307c2a67da71f02bd84fb03895af7 /java/src/com/android/inputmethod/latin/MoreSuggestionsView.java | |
parent | 720baf0cb3d6dcdf0b0024083824edaf905499ed (diff) | |
download | latinime-0cf7a45ac53eef7399826a548a2ef8dab225bdf0.tar.gz latinime-0cf7a45ac53eef7399826a548a2ef8dab225bdf0.tar.xz latinime-0cf7a45ac53eef7399826a548a2ef8dab225bdf0.zip |
Preventing infinite call of dismissMoreKeysPanel
Bug: 5514583
Change-Id: Idf8dd1ebba0afdb768e538c2626b60770421d4be
Diffstat (limited to 'java/src/com/android/inputmethod/latin/MoreSuggestionsView.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/MoreSuggestionsView.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java index 51f6c040d..c61dd6313 100644 --- a/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/MoreSuggestionsView.java @@ -35,7 +35,6 @@ import com.android.inputmethod.keyboard.PointerTracker.DrawingProxy; import com.android.inputmethod.keyboard.PointerTracker.KeyEventHandler; import com.android.inputmethod.keyboard.PointerTracker.TimerProxy; - /** * A view that renders a virtual {@link MoreSuggestions}. It handles rendering of keys and detecting * key presses and touch movements. @@ -125,7 +124,7 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel { @Override public DrawingProxy getDrawingProxy() { - return this; + return this; } @Override @@ -180,10 +179,15 @@ public class MoreSuggestionsView extends KeyboardView implements MoreKeysPanel { return x; } + private boolean mIsDismissing; + @Override public boolean dismissMoreKeysPanel() { - if (mController == null) return false; - return mController.dismissMoreKeysPanel(); + if (mIsDismissing) return false; + mIsDismissing = true; + final boolean dismissed = mController.dismissMoreKeysPanel(); + mIsDismissing = false; + return dismissed; } @Override |