OSDN Git Service

Fix wobbly spinners
authorChet Haase <chet@google.com>
Mon, 12 Sep 2011 21:21:46 +0000 (14:21 -0700)
committerChet Haase <chet@google.com>
Mon, 12 Sep 2011 21:21:46 +0000 (14:21 -0700)
commite5cdb6c8394e321266fb8940fdd0c97b2f87b2f3
tree109ea7b5610466bcf5b187de47fc3b7c8806154b
parent92bda84b11ba2aec98036313784444d9f5aebc9a
Fix wobbly spinners

Some progress bars use AnimatedRotateDrawable, which suffered
from the same bug as AnimationDrawable (until a recent fix). The
code would not account for the left/top offset of the drawable in its view,
so it would rotate the drawable around the wrong center, causing it to
wobble and not get erased properly.

Change-Id: I3f34f797e595973d9eb1d952d92026c769c7ec0a
graphics/java/android/graphics/drawable/AnimatedRotateDrawable.java