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

Commit f38fd878 authored by Romain Guy's avatar Romain Guy Committed by Android Git Automerger
Browse files

am 7a6e1297: am 8d8fc469: Merge "Don\'t orphan footers with transient state...

am 7a6e1297: am 8d8fc469: Merge "Don\'t orphan footers with transient state Bug #8725945" into jb-mr2-dev

* commit '7a6e1297':
  Don't orphan footers with transient state Bug #8725945
parents b2765e7d 7a6e1297
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2787,6 +2787,7 @@ public final class ViewRootImpl implements ViewParent,

        setAccessibilityFocus(null, null);

        mView.assignParent(null);
        mView = null;
        mAttachInfo.mRootView = null;
        mAttachInfo.mSurface = null;
+2 −2
Original line number Diff line number Diff line
@@ -6519,7 +6519,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
            int viewType = lp.viewType;
            final boolean scrapHasTransientState = scrap.hasTransientState();
            if (!shouldRecycleViewType(viewType) || scrapHasTransientState) {
                if (viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER || scrapHasTransientState) {
                if (viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER && scrapHasTransientState) {
                    if (mSkippedScrap == null) {
                        mSkippedScrap = new ArrayList<View>();
                    }
@@ -6593,7 +6593,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
                    final boolean scrapHasTransientState = victim.hasTransientState();
                    if (!shouldRecycleViewType(whichScrap) || scrapHasTransientState) {
                        // Do not move views that should be ignored
                        if (whichScrap != ITEM_VIEW_TYPE_HEADER_OR_FOOTER ||
                        if (whichScrap != ITEM_VIEW_TYPE_HEADER_OR_FOOTER &&
                                scrapHasTransientState) {
                            removeDetachedView(victim, false);
                        }