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

Commit 22e92e55 authored by Adam Powell's avatar Adam Powell
Browse files

Fix bug 3257463 - Yes, we SHOULD put the child in the recycler.

This caused an issue where a LinearLayout measuring for the baseline
could cause the fake view for position 0 to be associated with a
different position in the recycler. It gets used later with the wrong
data; bad times.

Change-Id: If273894d46185a550f4efd9f11ef83e0113f0a3c
parent 134d3238
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -199,7 +199,8 @@ public class Spinner extends AbsSpinner implements OnClickListener {
            child = getChildAt(0);
        } else if (mAdapter != null && mAdapter.getCount() > 0) {
            child = makeAndAddView(0);
            // TODO: We should probably put the child in the recycler
            mRecycler.put(0, child);
            removeAllViewsInLayout();
        }

        if (child != null) {