Fixed a bug where the drag down animation was behaving wrong

Since we actually only need to animate the yCoordinate in
the drag down motion, some clipping artefacts were left
in certain cases.

Bug: 17345758
Change-Id: I659a64b7ae5c7abcfa04c20347ec56a2d5f4f75c
This commit is contained in:
Selim Cinek
2014-09-10 18:52:08 +02:00
parent 237a70153b
commit cfc91cf264

View File

@@ -166,7 +166,7 @@ public class StackStateAnimator {
boolean hasDelays = mAnimationFilter.hasDelays;
boolean isDelayRelevant = yTranslationChanging || zTranslationChanging || scaleChanging ||
alphaChanging || heightChanging || topInsetChanging;
boolean noAnimation = wasAdded && !mAnimationFilter.hasGoToFullShadeEvent;
boolean noAnimation = wasAdded;
long delay = 0;
long duration = mCurrentLength;
if (hasDelays && isDelayRelevant || wasAdded) {
@@ -184,7 +184,7 @@ public class StackStateAnimator {
// start translationY animation
if (yTranslationChanging) {
if (noAnimation) {
if (noAnimation && !mAnimationFilter.hasGoToFullShadeEvent) {
child.setTranslationY(viewState.yTranslation);
} else {
startYTranslationAnimation(child, viewState, duration, delay);