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

Commit 8c184d3d authored by Yigit Boyar's avatar Yigit Boyar Committed by Android Git Automerger
Browse files

am f8acc3af: am b2b53fb9: am 5ddaa72b: Merge "Handle negative view types...

am f8acc3af: am b2b53fb9: am 5ddaa72b: Merge "Handle negative view types properly in getScrapView" into mnc-dev

* commit 'f8acc3af':
  Handle negative view types properly in getScrapView
parents 0589612c f8acc3af
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -6583,14 +6583,15 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
         * @return A view from the ScrapViews collection. These are unordered.
         */
        View getScrapView(int position) {
            final int whichScrap = mAdapter.getItemViewType(position);
            if (whichScrap < 0) {
                return null;
            }
            if (mViewTypeCount == 1) {
                return retrieveFromScrap(mCurrentScrap, position);
            } else {
                final int whichScrap = mAdapter.getItemViewType(position);
                if (whichScrap >= 0 && whichScrap < mScrapViews.length) {
            } else if (whichScrap < mScrapViews.length) {
                return retrieveFromScrap(mScrapViews[whichScrap], position);
            }
            }
            return null;
        }