Loading core/java/android/widget/AbsListView.java +1 −9 Original line number Diff line number Diff line Loading @@ -270,12 +270,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te */ Drawable mSelector; /** * Set to true if we would like to have the selector showing itself. * We still need to draw and position it even if this is false. */ boolean mSelectorShowing; /** * The current position of the selector in the list. */ Loading Loading @@ -1669,7 +1663,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te setSelectedPositionInt(INVALID_POSITION); setNextSelectedPositionInt(INVALID_POSITION); mSelectedTop = 0; mSelectorShowing = false; mSelectorPosition = INVALID_POSITION; mSelectorRect.setEmpty(); invalidate(); Loading Loading @@ -2025,7 +2018,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final boolean isChildViewEnabled = mIsChildViewEnabled; if (sel.isEnabled() != isChildViewEnabled) { mIsChildViewEnabled = !isChildViewEnabled; if (mSelectorShowing) { if (getSelectedItemPosition() != INVALID_POSITION) { refreshDrawableState(); } } Loading Loading @@ -4529,7 +4522,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te setSelectedPositionInt(INVALID_POSITION); setNextSelectedPositionInt(INVALID_POSITION); mSelectedTop = 0; mSelectorShowing = false; } } Loading Loading
core/java/android/widget/AbsListView.java +1 −9 Original line number Diff line number Diff line Loading @@ -270,12 +270,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te */ Drawable mSelector; /** * Set to true if we would like to have the selector showing itself. * We still need to draw and position it even if this is false. */ boolean mSelectorShowing; /** * The current position of the selector in the list. */ Loading Loading @@ -1669,7 +1663,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te setSelectedPositionInt(INVALID_POSITION); setNextSelectedPositionInt(INVALID_POSITION); mSelectedTop = 0; mSelectorShowing = false; mSelectorPosition = INVALID_POSITION; mSelectorRect.setEmpty(); invalidate(); Loading Loading @@ -2025,7 +2018,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final boolean isChildViewEnabled = mIsChildViewEnabled; if (sel.isEnabled() != isChildViewEnabled) { mIsChildViewEnabled = !isChildViewEnabled; if (mSelectorShowing) { if (getSelectedItemPosition() != INVALID_POSITION) { refreshDrawableState(); } } Loading Loading @@ -4529,7 +4522,6 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te setSelectedPositionInt(INVALID_POSITION); setNextSelectedPositionInt(INVALID_POSITION); mSelectedTop = 0; mSelectorShowing = false; } } Loading