summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-01-20 15:24:28 -0800
committerDianne Hackborn <hackbod@google.com>2011-01-20 15:24:28 -0800
commitbe1f62260ae4798cd80404dc595e1146f346cfe9 (patch)
tree0c905ff769236d54054731dd03fdf89f8c734c97 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent2cb866b948c38923b31331a9b2f031eb9d791e6e (diff)
Fix issue #3374356: Buttons sometimes don't highlight
On touch up, View would move itself to the pressed state if it hadn't already shown as pressed. However, it did this *after* scheduling the message to deliver the onClick(). Thus if the app took a little too long to execute inside of onClick(), the invalidate to draw the highlight state would be executed right before the following message to remove the highlight state, causing it to basically not be shown. This change just does the invalidate before scheduling the onClick, so we can be sure it gets done first. Change-Id: I6a4d1742a3aab60969c38b44bb3e163f48de62d4
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions