Skip to content

Commit 1fb8a9e

Browse files
committed
Fix init of Animation in View drawing code
The refactor of ViewGroup.drawChild() resulted in an error in a new method (View.drawAnimation) where animations were being initialized with their view dimensions instead of the parent dimensions. Issue #6292681 RotateAnimationTest#testRotateAgainstPoint fails on JRN04 Issue #6293275 TranslateAnimationTest#testInitialize fails on JRN04 Change-Id: Ia90711cadd7a6c20fd788e5b8b18a5b28551e68c
1 parent f01d3dd commit 1fb8a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/view/View.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12297,7 +12297,7 @@ private boolean drawAnimation(ViewGroup parent, long drawingTime,
1229712297
final int flags = parent.mGroupFlags;
1229812298
final boolean initialized = a.isInitialized();
1229912299
if (!initialized) {
12300-
a.initialize(mRight - mLeft, mBottom - mTop, getWidth(), getHeight());
12300+
a.initialize(mRight - mLeft, mBottom - mTop, parent.getWidth(), parent.getHeight());
1230112301
a.initializeInvalidateRegion(0, 0, mRight - mLeft, mBottom - mTop);
1230212302
onAnimationStart();
1230312303
}

0 commit comments

Comments
 (0)