OSDN Git Service

Fixed the gap which could occur after the speedbumpview.
authorSelim Cinek <cinek@google.com>
Mon, 26 May 2014 05:49:03 +0000 (07:49 +0200)
committerSelim Cinek <cinek@google.com>
Mon, 26 May 2014 05:49:03 +0000 (07:49 +0200)
Bug: 15126099
Change-Id: Ia1724c123296313a706790d3a25ffc1857968b63

packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java

index a2f8991..a84daef 100644 (file)
@@ -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