From c1d2748d442f06a7266be04b9e9c7d20609ad5cc Mon Sep 17 00:00:00 2001 From: Daisuke Miyakawa Date: Mon, 25 May 2009 17:37:41 +0900 Subject: Manual merge from cupcake_dcm. Need to be reviewed by enf. --- core/java/android/widget/AutoCompleteTextView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/java/android/widget/AutoCompleteTextView.java') diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index a1d16ea..f376ce5 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -950,6 +950,8 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe * @param text the selected suggestion in the drop down list */ protected void replaceText(CharSequence text) { + clearComposingText(); + setText(text); // make sure we keep the caret at the end of the text view Editable spannable = getText(); -- cgit v1.1