Merge "Fix artifact with LayoutTransitions on disappearing window."
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -147,7 +147,7 @@ public class NotificationPanel extends RelativeLayout implements StatusBarPanel,
|
||||
public boolean onPreDraw() {
|
||||
getViewTreeObserver().removeOnPreDrawListener(this);
|
||||
mChoreo.startAnimation(true);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user