summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-05-26 14:13:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-26 14:13:05 +0000
commit0b176bbc10147df9a5b814e164cf9f9c748382c5 (patch)
treef79c4f73de55c78f75347fa7546226674ce4625a /packages
parentb13d754898eee54876799b3a306ff6fa453acfda (diff)
parent0045cc1bbd71e8be1ef15658f82d659f6d0ba47a (diff)
downloadframeworks_base-0b176bbc10147df9a5b814e164cf9f9c748382c5.zip
frameworks_base-0b176bbc10147df9a5b814e164cf9f9c748382c5.tar.gz
frameworks_base-0b176bbc10147df9a5b814e164cf9f9c748382c5.tar.bz2
Merge "Fixed the gap which could occur after the speedbumpview." into lmp-preview-dev
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/SpeedBumpView.java6
1 files changed, 5 insertions, 1 deletions
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