OSDN Git Service

Fix for jank when fast-scrolling DeskClock's world cities list in RTL
authorRaph Levien <raph@google.com>
Fri, 27 Sep 2013 20:36:24 +0000 (13:36 -0700)
committerRaph Levien <raph@google.com>
Fri, 27 Sep 2013 20:36:24 +0000 (13:36 -0700)
commite048f84a762d5f85829ceb2b45de52b73727de74
tree1291c5944428ba117b4e881b1b03f7db991df957
parent015bcd4dd43b850ef209c64dae9c08ccaef9ea80
Fix for jank when fast-scrolling DeskClock's world cities list in RTL

This is a fix for bug 10863979.

The onPreDraw() method in TextView was canceling the draw every time a
the horizontal scroll changed. These dropped frames were visible as
jank. The fix is to never cancel the draw. It seems likely that the
previous rationale for canceling draw is no longer valid, due to other
fixes, because the scroll state will have been fully updated.

Change-Id: I8c2da5450723f993055a49b1cb57320c08f2a11e
core/java/android/widget/TextView.java