diff --git a/library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java b/library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java index 19eb2ace..23fb8b51 100644 --- a/library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java +++ b/library-core/src/main/java/it/gmariotti/cardslib/library/view/ForegroundLinearLayout.java @@ -183,7 +183,9 @@ public Drawable getForeground() { @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); - mForegroundBoundsChanged = changed; + if (changed) { + mForegroundBoundsChanged = true; + } } @Override