summaryrefslogtreecommitdiffstats
path: root/CleanSpec.mk
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2011-09-29 12:49:17 -0700
committerAmith Yamasani <yamasani@google.com>2011-10-09 12:03:09 -0700
commit803ce0f9fdd455dc4ec0c6ad9c141c76315fd4da (patch)
treeeefdb2d29d575871ff08b78ade00fe54f8302564 /CleanSpec.mk
parenta0c39e28e56d642168ad18dccb86f5787b4e1592 (diff)
downloadframeworks_base-803ce0f9fdd455dc4ec0c6ad9c141c76315fd4da.zip
frameworks_base-803ce0f9fdd455dc4ec0c6ad9c141c76315fd4da.tar.gz
frameworks_base-803ce0f9fdd455dc4ec0c6ad9c141c76315fd4da.tar.bz2
Use SoundPool instead of Ringtone.
The lock screen was using Ringtone for the lock/unlock sounds, which meant two new MediaPlayers were created every time a sound needed to be played. In addition, the Ringtone was assigned to a local variable, which means it could go be garbage collected and finalized while it was still playing. For short sounds that need to be played repeatedly, SoundPool is a better option anyway, so use that instead. b/5382634 Change-Id: I8794cbb24604fa7c03032bd5e32ceab37a858054
Diffstat (limited to 'CleanSpec.mk')
0 files changed, 0 insertions, 0 deletions