summaryrefslogtreecommitdiffstats
path: root/packages/services/Proxy/res
diff options
context:
space:
mode:
authorChet Haase <chet@google.com>2014-08-18 10:33:58 -0700
committerChet Haase <chet@google.com>2014-08-18 10:33:58 -0700
commit030435773dc5413a690d460e97fd681740cd32ef (patch)
tree9b9510baa20683fd84e207808726ecef8b4784fd /packages/services/Proxy/res
parent95d9ad0f79c900db9bca1745100f14d0ec9cc133 (diff)
downloadframeworks_base-030435773dc5413a690d460e97fd681740cd32ef.zip
frameworks_base-030435773dc5413a690d460e97fd681740cd32ef.tar.gz
frameworks_base-030435773dc5413a690d460e97fd681740cd32ef.tar.bz2
Fix crash in AnimationDrawable
When a drawable becomes invisible, it unschedule itself, which sets mCurrentFrame to -1. Later, when it becomes visible, it calls setFrame() with either 0 (if 'restart' is true) or mCurrentFrame. Calling setFrame() with a value of -1 causes a crash later as we dereference an invalid location in the state durations array. This fix also checks mCurrentFrame and calls setFrame with 0 when the current frame is invalid. This takes the code back closer to what it used to be when setFrame was always called with 0, although now it will use a valid frame when it is set. Issue #16489419 Google Translate crashes whenever hitting done button on keyboard to get translation result. Change-Id: I1f5b8672d209017aa8a4eaa15bd7ddd2f3ae38d1
Diffstat (limited to 'packages/services/Proxy/res')
0 files changed, 0 insertions, 0 deletions