Fixed a bug where animations were generated when closed.

Bug: 17248206
Change-Id: I4376e1eede125ade71c09b2c1cd6ae64ad617230
This commit is contained in:
Selim Cinek
2014-08-25 13:55:06 +02:00
parent 2ee5f8ff5e
commit 0e41dea0b3

View File

@@ -1913,7 +1913,9 @@ public class NotificationStackScrollLayout extends ViewGroup
@Override
public void onReset(ExpandableView view) {
mRequestViewResizeAnimationOnLayout = true;
if (mIsExpanded && mAnimationsEnabled) {
mRequestViewResizeAnimationOnLayout = true;
}
mStackScrollAlgorithm.onReset(view);
}