diff options
author | Jean Chalard <jchalard@google.com> | 2013-09-12 21:57:24 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-12 21:57:24 -0700 |
commit | f6fac14e2ea5581abf931de816b1e42d3bb56ab8 (patch) | |
tree | 6cf2d3ee89408e741fce4a14140cab035364cf86 /core/java/android/inputmethodservice | |
parent | fb73df74d56205e2c64e57324be8f8643781c330 (diff) | |
parent | 4895ec3dcc214891b9788cde3c9720ee9656596c (diff) | |
download | frameworks_base-f6fac14e2ea5581abf931de816b1e42d3bb56ab8.zip frameworks_base-f6fac14e2ea5581abf931de816b1e42d3bb56ab8.tar.gz frameworks_base-f6fac14e2ea5581abf931de816b1e42d3bb56ab8.tar.bz2 |
am 4895ec3d: am 940a2ad6: Merge "Don\'t send the same values to onUpdateSelection repeatedly" into klp-dev
* commit '4895ec3dcc214891b9788cde3c9720ee9656596c':
Don't send the same values to onUpdateSelection repeatedly
Diffstat (limited to 'core/java/android/inputmethodservice')
-rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 7f82ce3..9319d4a 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -1650,6 +1650,11 @@ public class InputMethodService extends AbstractInputMethodService { * the text. This is called whether or not the input method has requested * extracted text updates, although if so it will not receive this call * if the extracted text has changed as well. + * + * <p>Be careful about changing the text in reaction to this call with + * methods such as setComposingText, commitText or + * deleteSurroundingText. If the cursor moves as a result, this method + * will be called again, which may result in an infinite loop. * * <p>The default implementation takes care of updating the cursor in * the extract text, if it is being shown. |