From ceef0d0888a14e073b63f75a95c4c8be3442f10d Mon Sep 17 00:00:00 2001 From: Shane Fitzpatrick Date: Thu, 30 Mar 2017 09:50:59 -0700 Subject: [PATCH] Exit early from onLayout if not changed & state is transitioning --- .../io/mattcarroll/hover/defaulthovermenu/HoverMenuView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/HoverMenuView.java b/hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/HoverMenuView.java index 0fa5ef0..b0e6b3f 100755 --- a/hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/HoverMenuView.java +++ b/hover/src/main/java/io/mattcarroll/hover/defaulthovermenu/HoverMenuView.java @@ -604,7 +604,7 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto Rect anchoredBounds = mMenuAnchor.anchor(new Rect(0, 0, getActiveTab().getWidth(), getActiveTab().getHeight())); Log.d(TAG, "Adjusted anchor bounds at (" + anchoredBounds.left + ", " + anchoredBounds.top + ")"); - if (!changed) { + if (!changed && mVisualState == TRANSITIONING) { return; }