Merge "Fix artifact with LayoutTransitions on disappearing window."

This commit is contained in:
Chet Haase
2011-09-02 16:52:03 -07:00
committed by Android (Google) Code Review
3 changed files with 7 additions and 2 deletions

View File

@@ -351,7 +351,7 @@ public final class ObjectAnimator extends ValueAnimator {
@Override
public void start() {
if (DBG) {
Log.d("ObjectAnimator", "Anim target, duration" + mTarget + ", " + getDuration());
Log.d("ObjectAnimator", "Anim target, duration: " + mTarget + ", " + getDuration());
for (int i = 0; i < mValues.length; ++i) {
PropertyValuesHolder pvh = mValues[i];
ArrayList<Keyframe> keyframes = pvh.mKeyframeSet.mKeyframes;

View File

@@ -1599,6 +1599,11 @@ public final class ViewRootImpl extends Handler implements ViewParent,
}
}
} else {
// If we're not drawing, then we don't need to draw the transitions, either
if (mPendingTransitions != null) {
mPendingTransitions.clear();
}
// We were supposed to report when we are done drawing. Since we canceled the
// draw, remember it here.
if ((relayoutResult&WindowManagerImpl.RELAYOUT_FIRST_TIME) != 0) {

View File

@@ -147,7 +147,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel,
public boolean onPreDraw() {
getViewTreeObserver().removeOnPreDrawListener(this);
mChoreo.startAnimation(true);
return true;
return false;
}
};