Merge "Bug 5299484: Recipient address in to field is doubled when entering in landscape mode"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0fd7e087eb
@@ -16,8 +16,6 @@
|
|||||||
|
|
||||||
package android.widget;
|
package android.widget;
|
||||||
|
|
||||||
import com.android.internal.R;
|
|
||||||
|
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.res.TypedArray;
|
import android.content.res.TypedArray;
|
||||||
import android.database.DataSetObserver;
|
import android.database.DataSetObserver;
|
||||||
@@ -38,6 +36,8 @@ import android.view.inputmethod.CompletionInfo;
|
|||||||
import android.view.inputmethod.EditorInfo;
|
import android.view.inputmethod.EditorInfo;
|
||||||
import android.view.inputmethod.InputMethodManager;
|
import android.view.inputmethod.InputMethodManager;
|
||||||
|
|
||||||
|
import com.android.internal.R;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>An editable text view that shows completion suggestions automatically
|
* <p>An editable text view that shows completion suggestions automatically
|
||||||
@@ -837,10 +837,6 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
|
|||||||
@Override
|
@Override
|
||||||
public void onCommitCompletion(CompletionInfo completion) {
|
public void onCommitCompletion(CompletionInfo completion) {
|
||||||
if (isPopupShowing()) {
|
if (isPopupShowing()) {
|
||||||
mBlockCompletion = true;
|
|
||||||
replaceText(completion.getText());
|
|
||||||
mBlockCompletion = false;
|
|
||||||
|
|
||||||
mPopup.performItemClick(completion.getPosition());
|
mPopup.performItemClick(completion.getPosition());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user