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

Commit f4071065 authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Fix bug with transientState for listviews without stable IDs" into jb-mr2-dev

parents ab7409e6 a2230e18
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6366,7 +6366,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                            mTransientStateViewsById = new LongSparseArray<View>();
                        }
                        mTransientStateViewsById.put(lp.itemId, scrap);
                    } else {
                    } else if (!mDataChanged) {
                        // avoid putting views on transient state list during a data change;
                        // the layout positions may be out of sync with the adapter positions
                        if (mTransientStateViews == null) {
                            mTransientStateViews = new SparseArray<View>();
                        }