You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
AbsListView.onTouchUp(): Also update nextSelectedPosition
This seems to be a bug in the AOSP implementation, but somehow on AOSP it doesn't have any effect.
This commit is contained in:
@@ -2992,6 +2992,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
|
|||||||
if (!mDataChanged && mAdapter.isEnabled(motionPosition)) {
|
if (!mDataChanged && mAdapter.isEnabled(motionPosition)) {
|
||||||
mTouchMode = TOUCH_MODE_TAP;
|
mTouchMode = TOUCH_MODE_TAP;
|
||||||
setSelectedPositionInt(mMotionPosition);
|
setSelectedPositionInt(mMotionPosition);
|
||||||
|
setNextSelectedPositionInt(mMotionPosition);
|
||||||
layoutChildren();
|
layoutChildren();
|
||||||
child.setPressed(true);
|
child.setPressed(true);
|
||||||
positionSelector(mMotionPosition, child);
|
positionSelector(mMotionPosition, child);
|
||||||
|
|||||||
Reference in New Issue
Block a user