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

Commit 365088f6 authored by Romain Guy's avatar Romain Guy Committed by Android (Google) Code Review
Browse files

Merge "Don't supply a null child to the click listener. External bug...

Merge "Don't supply a null child to the click listener. External bug #http://code.google.com/p/android/issues/detail?id=7644"
parents f70c9f2d c9c82b56
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -913,10 +913,10 @@ public class AutoCompleteTextView extends EditText implements Filter.FilterListe

            if (mItemClickListener != null) {
                final DropDownListView list = mDropDownList;
                // Note that we don't have a View here, so we will need to
                // supply null.  Hopefully no existing apps crash...
                mItemClickListener.onItemClick(list, null, completion.getPosition(),
                        completion.getId());
                final int position = completion.getPosition();
                mItemClickListener.onItemClick(list,
                        list.getChildAt(position - list.getFirstVisiblePosition()),
                        position, completion.getId());
            }
        }
    }