Merge change 5581 into donut

* changes:
  Add a null check in an AutoCompleteTextView callback to prevent a crash.
This commit is contained in:
Android (Google) Code Review
2009-06-26 16:23:51 -07:00

View File

@@ -1202,7 +1202,11 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
int position, long id) {
if (position != -1) {
mDropDownList.mListSelectionHidden = false;
DropDownListView dropDownList = mDropDownList;
if (dropDownList != null) {
dropDownList.mListSelectionHidden = false;
}
}
}