Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02361417 authored by Android (Google) Code Review's avatar Android (Google) Code Review Committed by The Android Open Source Project
Browse files

am 7bf9f930: Merge change 6415 into donut

Merge commit '7bf9f930'

* commit '7bf9f930':
  Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag.
parents ea9f8a4d 7bf9f930
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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()
        }
+2 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ package android.widget;

import android.app.Instrumentation;
import android.test.ActivityInstrumentationTestCase2;
import android.test.FlakyTest;
import android.test.suitebuilder.annotation.MediumTest;

/**
@@ -149,6 +150,7 @@ public class AutoCompleteTextViewPopup
    }
    
    /** Test the show/hide behavior of the drop-down. */
    @FlakyTest(tolerance=5)
    @MediumTest
    public void testPopupShow() throws Throwable {
        AutoCompleteTextViewSimple theActivity = getActivity();