diff --git a/lib/java/com/google/android/material/snackbar/BaseTransientBottomBar.java b/lib/java/com/google/android/material/snackbar/BaseTransientBottomBar.java index 449a3fc3b0a..4a6b8ef85a8 100644 --- a/lib/java/com/google/android/material/snackbar/BaseTransientBottomBar.java +++ b/lib/java/com/google/android/material/snackbar/BaseTransientBottomBar.java @@ -765,10 +765,11 @@ public void run() { recalculateAndUpdateMargins(); + targetParent.addView(this.view); + // Set view to INVISIBLE so it doesn't flash on the screen before the inset adjustment is // handled and the enter animation is started view.setVisibility(View.INVISIBLE); - targetParent.addView(this.view); } if (ViewCompat.isLaidOut(this.view)) {