diff --git a/app/src/main/java/com/dragon/ide/ui/activities/EventEditorActivity.java b/app/src/main/java/com/dragon/ide/ui/activities/EventEditorActivity.java index 8f6738f..4a8e04a 100644 --- a/app/src/main/java/com/dragon/ide/ui/activities/EventEditorActivity.java +++ b/app/src/main/java/com/dragon/ide/ui/activities/EventEditorActivity.java @@ -550,6 +550,9 @@ public boolean onDrag(View v, DragEvent dragEvent) { attachableBlockView.setEnableEdit(true); attachableBlockView.setBlock(blockDefaultView.getBlock()); } + if (index == 0) { + index = 1; + } ((ViewGroup) v).addView(attachableBlockView, index); Utils.setMargins(attachableBlockView, -16, 0, 0, 0); }