diff options
| author | Gilles Debunne <debunne@google.com> | 2011-09-14 15:52:03 -0700 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2011-09-14 15:52:07 -0700 |
| commit | 688df79243762923f6cd34f767cb2f690b11a48c (patch) | |
| tree | 63cb6e9913cb18c0df1bc574f05932862dda958a /core/java/android/widget/AutoCompleteTextView.java | |
| parent | b5dfcb8a3d1e2a4ec39d9f27e185f3eca6910a31 (diff) | |
Bug 5299484: Recipient address in to field is doubled when entering in landscape mode
A tap on a completion in the keyboard calls onCommitCompletion, which in turn calls
performCompletion because of the DropDownItemClickListener.
As a result, the text is replaced twice. Removing the first text replacement.
Change-Id: I4974d23c68ab25ca0ad0cda5abf25f30129b28ee
Diffstat (limited to 'core/java/android/widget/AutoCompleteTextView.java')
| -rw-r--r-- | core/java/android/widget/AutoCompleteTextView.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/core/java/android/widget/AutoCompleteTextView.java b/core/java/android/widget/AutoCompleteTextView.java index 27610b9fe5c2..65f3f1c87f6d 100644 --- a/core/java/android/widget/AutoCompleteTextView.java +++ b/core/java/android/widget/AutoCompleteTextView.java @@ -16,8 +16,6 @@ package android.widget; -import com.android.internal.R; - import android.content.Context; import android.content.res.TypedArray; import android.database.DataSetObserver; @@ -38,6 +36,8 @@ import android.view.inputmethod.CompletionInfo; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputMethodManager; +import com.android.internal.R; + /** * <p>An editable text view that shows completion suggestions automatically @@ -837,10 +837,6 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe @Override public void onCommitCompletion(CompletionInfo completion) { if (isPopupShowing()) { - mBlockCompletion = true; - replaceText(completion.getText()); - mBlockCompletion = false; - mPopup.performItemClick(completion.getPosition()); } } |
