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

Commit f9736d3b authored by Alan Viverette's avatar Alan Viverette
Browse files

Rebind transient state views when available

If a view is obtained, it is guaranteed to represent the same data.

BUG: 10901462
Change-Id: Ice2b3508ae8cf444f006c084e6b7a3e79373723b
parent 398d7f61
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2231,11 +2231,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
        View scrapView;

        scrapView = mRecycler.getTransientStateView(position);
        if (scrapView != null) {
            return scrapView;
        }

        if (scrapView == null) {
            scrapView = mRecycler.getScrapView(position);
        }

        View child;
        if (scrapView != null) {