Skip to content

Commit

Permalink
chore: Use Utils#setMargin for setting blockHintParent.getChildAt(1) …
Browse files Browse the repository at this point in the history
…margin in EventEditorActivity
  • Loading branch information
SyntaxGalaxy committed Jan 30, 2024
1 parent ce295c9 commit 4fed477
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@ public void handleShadowRemove(ViewGroup v) {
if (blockHintParent.getChildAt(0).getTag().equals("shadow")) {
if (blockHintParent.getId() != R.id.relativeBlockListEditorArea) {
if (blockHintParent.getChildAt(1).getLayoutParams() != null) {
((LinearLayout.LayoutParams) blockHintParent.getChildAt(1).getLayoutParams())
.setMargins(0, 0, 0, 0);
Utils.setMargins(blockHintParent.getChildAt(1), 0, 0, 0, 0);
}
}
}
Expand Down

0 comments on commit 4fed477

Please sign in to comment.