From 0045cc1bbd71e8be1ef15658f82d659f6d0ba47a Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Mon, 26 May 2014 07:49:03 +0200 Subject: Fixed the gap which could occur after the speedbumpview. Bug: 15126099 Change-Id: Ia1724c123296313a706790d3a25ffc1857968b63 --- .../SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android') diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java b/packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java index a2f8991..a84daef 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java @@ -103,7 +103,11 @@ public class SpeedBumpView extends ExpandableView implements View.OnClickListene @Override public int getIntrinsicHeight() { - return getActualHeight(); + if (mCurrentAnimator != null) { + // expand animation is running + return getActualHeight(); + } + return mIsExpanded ? getHeight() : mCollapsedHeight; } @Override -- cgit v1.1