mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-03-10 08:30:08 +01:00
Fixed Api bug in DragSortListView
This commit is contained in:
parent
f5748d7dc0
commit
aae40c076e
@ -2933,7 +2933,9 @@ public class DragSortListView extends ListView {
|
|||||||
// always do scroll
|
// always do scroll
|
||||||
mBlockLayoutRequests = true;
|
mBlockLayoutRequests = true;
|
||||||
|
|
||||||
setSelectionFromTop(movePos, top - padTop);
|
// This cast is a workaround of an API bug, see https://issuetracker.google.com/issues/37045361
|
||||||
|
((ListView)DragSortListView.this).setSelectionFromTop(movePos, top - padTop);
|
||||||
|
|
||||||
DragSortListView.this.layoutChildren();
|
DragSortListView.this.layoutChildren();
|
||||||
invalidate();
|
invalidate();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user