diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-11 12:11:56 -0700 | 
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-11 12:11:56 -0700 | 
| commit | c39a6e0c51e182338deb8b63d07933b585134929 (patch) | |
| tree | e55fc5bd38b1eb8fb4851a0fe1cc264a7fe2f245 /core/java/android/text | |
| parent | b2a3dd88a53cc8c6d19f6dc8ec4f3d6c4abd9b54 (diff) | |
| download | frameworks_base-c39a6e0c51e182338deb8b63d07933b585134929.zip frameworks_base-c39a6e0c51e182338deb8b63d07933b585134929.tar.gz frameworks_base-c39a6e0c51e182338deb8b63d07933b585134929.tar.bz2 | |
auto import from //branches/cupcake/...@137873
Diffstat (limited to 'core/java/android/text')
| -rw-r--r-- | core/java/android/text/method/QwertyKeyListener.java | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/core/java/android/text/method/QwertyKeyListener.java b/core/java/android/text/method/QwertyKeyListener.java index 3f8288c..21bc2a6 100644 --- a/core/java/android/text/method/QwertyKeyListener.java +++ b/core/java/android/text/method/QwertyKeyListener.java @@ -298,8 +298,10 @@ public class QwertyKeyListener extends BaseKeyListener {                  content.removeSpan(repl[0]);                  // only cancel the autocomplete if the cursor is at the end of -                // the replaced span -                if (selStart == en) { +                // the replaced span (or after it, because the user is +                // backspacing over the space after the word, not the word +                // itself). +                if (selStart >= en) {                      content.setSpan(TextKeyListener.INHIBIT_REPLACEMENT,                                      en, en, Spannable.SPAN_POINT_POINT);                      content.replace(st, en, old); | 
