Skip to content

Commit 2f2eea7

Browse files
chethaaseAndroid (Google) Code Review
authored andcommitted
Merge "Fix wobbly spinners"
2 parents 83f9dfe + e5cdb6c commit 2f2eea7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void draw(Canvas canvas) {
7979
float px = st.mPivotXRel ? (w * st.mPivotX) : st.mPivotX;
8080
float py = st.mPivotYRel ? (h * st.mPivotY) : st.mPivotY;
8181

82-
canvas.rotate(mCurrentDegrees, px, py);
82+
canvas.rotate(mCurrentDegrees, px + bounds.left, py + bounds.top);
8383

8484
drawable.draw(canvas);
8585

0 commit comments

Comments
 (0)