am 7bf9f930: Merge change 6415 into donut

Merge commit '7bf9f930d986335cd24dc15e2ee588b851f194d4'

* commit '7bf9f930d986335cd24dc15e2ee588b851f194d4':
  Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag.
This commit is contained in:
Android (Google) Code Review
2009-07-07 15:21:16 -07:00
committed by The Android Open Source Project
2 changed files with 3 additions and 0 deletions

View File

@@ -823,6 +823,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
*/
public void setListSelection(int position) {
if (mPopup.isShowing() && (mDropDownList != null)) {
mDropDownList.mListSelectionHidden = false;
mDropDownList.setSelection(position);
// ListView.setSelection() will call requestLayout()
}