Loading core/java/android/widget/AbsListView.java +24 −2 Original line number Diff line number Diff line Loading @@ -2254,6 +2254,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te } } else { isScrap[0] = true; // Clear any system-managed transient state so that we can // recycle this view and bind it to different data. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } child.dispatchFinishTemporaryDetach(); } } else { Loading Loading @@ -5073,6 +5080,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te count++; int position = firstPosition + i; if (position >= headerViewsCount && position < footerViewsStart) { // The view will be rebound to new data, clear any // system-managed transient state. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } mRecycler.addScrapView(child, position); } } Loading @@ -5091,6 +5103,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te count++; int position = firstPosition + i; if (position >= headerViewsCount && position < footerViewsStart) { // The view will be rebound to new data, clear any // system-managed transient state. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } mRecycler.addScrapView(child, position); } } Loading Loading @@ -6664,8 +6681,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te lp.scrappedFromPosition = position; // Don't scrap header or footer views, or views that should // otherwise not be recycled. // Remove but don't scrap header or footer views, or views that // should otherwise not be recycled. final int viewType = lp.viewType; if (!shouldRecycleViewType(viewType)) { return; Loading Loading @@ -6704,6 +6721,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrapViews[viewType].add(scrap); } // Clear any system-managed transient state. if (scrap.isAccessibilityFocused()) { scrap.clearAccessibilityFocus(); } scrap.setAccessibilityDelegate(null); if (mRecyclerListener != null) { Loading Loading
core/java/android/widget/AbsListView.java +24 −2 Original line number Diff line number Diff line Loading @@ -2254,6 +2254,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te } } else { isScrap[0] = true; // Clear any system-managed transient state so that we can // recycle this view and bind it to different data. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } child.dispatchFinishTemporaryDetach(); } } else { Loading Loading @@ -5073,6 +5080,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te count++; int position = firstPosition + i; if (position >= headerViewsCount && position < footerViewsStart) { // The view will be rebound to new data, clear any // system-managed transient state. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } mRecycler.addScrapView(child, position); } } Loading @@ -5091,6 +5103,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te count++; int position = firstPosition + i; if (position >= headerViewsCount && position < footerViewsStart) { // The view will be rebound to new data, clear any // system-managed transient state. if (child.isAccessibilityFocused()) { child.clearAccessibilityFocus(); } mRecycler.addScrapView(child, position); } } Loading Loading @@ -6664,8 +6681,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te lp.scrappedFromPosition = position; // Don't scrap header or footer views, or views that should // otherwise not be recycled. // Remove but don't scrap header or footer views, or views that // should otherwise not be recycled. final int viewType = lp.viewType; if (!shouldRecycleViewType(viewType)) { return; Loading Loading @@ -6704,6 +6721,11 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrapViews[viewType].add(scrap); } // Clear any system-managed transient state. if (scrap.isAccessibilityFocused()) { scrap.clearAccessibilityFocus(); } scrap.setAccessibilityDelegate(null); if (mRecyclerListener != null) { Loading