summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorGilles Debunne <debunne@google.com>2011-03-07 15:50:47 -0800
committerGilles Debunne <debunne@google.com>2011-03-07 15:50:47 -0800
commitcfc22c533222f0181be7a717fbf721891d3bfd2d (patch)
tree198f7a4107b0ea784997e8c7314d0e9a29e8e811 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parentab7c3245ed7a725406a58826382471105c725468 (diff)
Text handles positions' are correctly updated.
Bug 3510106 The CAB animation does not fire events, which does not update the handles' positions. The solution is to make the handle update their position before any draw traversal, using an onPreDrawListener. The ScrollingPopupWindow onScroll listener is no longer needed with this change. This is also a more robust solution since other events (such as animations) may change the TextView's position. The cost is a recomputation of the Handles' positions at each redraw which was not necessary with listeners. But as mentioned before, not all possible events provide listeners or will in the future. Change-Id: I0f46118de5f660a75d95eecb2cf987fcb4b3b322
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions