Merge change 6415 into donut
* changes: Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag.
This commit is contained in:
@@ -837,6 +837,7 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe
|
|||||||
*/
|
*/
|
||||||
public void setListSelection(int position) {
|
public void setListSelection(int position) {
|
||||||
if (mPopup.isShowing() && (mDropDownList != null)) {
|
if (mPopup.isShowing() && (mDropDownList != null)) {
|
||||||
|
mDropDownList.mListSelectionHidden = false;
|
||||||
mDropDownList.setSelection(position);
|
mDropDownList.setSelection(position);
|
||||||
// ListView.setSelection() will call requestLayout()
|
// ListView.setSelection() will call requestLayout()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ package android.widget;
|
|||||||
|
|
||||||
import android.app.Instrumentation;
|
import android.app.Instrumentation;
|
||||||
import android.test.ActivityInstrumentationTestCase2;
|
import android.test.ActivityInstrumentationTestCase2;
|
||||||
|
import android.test.FlakyTest;
|
||||||
import android.test.suitebuilder.annotation.MediumTest;
|
import android.test.suitebuilder.annotation.MediumTest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -149,6 +150,7 @@ public class AutoCompleteTextViewPopup
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Test the show/hide behavior of the drop-down. */
|
/** Test the show/hide behavior of the drop-down. */
|
||||||
|
@FlakyTest(tolerance=5)
|
||||||
@MediumTest
|
@MediumTest
|
||||||
public void testPopupShow() throws Throwable {
|
public void testPopupShow() throws Throwable {
|
||||||
AutoCompleteTextViewSimple theActivity = getActivity();
|
AutoCompleteTextViewSimple theActivity = getActivity();
|
||||||
|
|||||||
Reference in New Issue
Block a user