Fixed the gap which could occur after the speedbumpview.

Bug: 15126099
Change-Id: Ia1724c123296313a706790d3a25ffc1857968b63
This commit is contained in:
Selim Cinek
2014-05-26 07:49:03 +02:00
parent 5bfee4986a
commit 0045cc1bbd

View 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