diff --git a/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java b/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java index aef1cc3..c52a40d 100644 --- a/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java +++ b/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java @@ -1512,10 +1512,10 @@ public final void expand(boolean animate) { mSuggestionsContainerLL.getMeasuredHeight(), animate ); - - // Requesting a full relayout, in order to apply the new size - requestLayout(); } + + // Requesting a full relayout, in order to apply the new size + requestLayout(); } @@ -1570,15 +1570,14 @@ public final void collapse(boolean animate) { 0, duration ); - - // Relayout related stuff - if(!animate) { - requestLayout(); - } else { - postExitAnimationEndActionEvent(duration); - } } + // Relayout related stuff + if(!animate) { + requestLayout(); + } else { + postExitAnimationEndActionEvent(duration); + } }