mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 01:46:49 +00:00
Preventing concurrentmodification exception when dragging a icon
with shortcuts from inside a folder When dragging the icon, DeepShortcutContainer removes itself as a dragListener causing the exception Change-Id: Ifb2b4a3045caa54aa0b6a9b525055ffdcfaa04a6
This commit is contained in:
@@ -260,7 +260,7 @@ public class DragController implements DragDriver.EventListener, TouchController
|
||||
dragView.show(mMotionDownX, mMotionDownY);
|
||||
mDistanceSinceScroll = 0;
|
||||
|
||||
for (DragListener listener : mListeners) {
|
||||
for (DragListener listener : new ArrayList<>(mListeners)) {
|
||||
listener.onDragStart(mDragObject, mOptions);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user