OSDN Git Service

Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
authorJean-Michel Trivi <jmtrivi@google.com>
Tue, 27 Apr 2010 00:21:40 +0000 (17:21 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Tue, 27 Apr 2010 00:21:40 +0000 (17:21 -0700)
commit6cf3d096363c62212870fb71bda8f55eb8d3823c
treee6a2bd5031045a4d699ded5666cfc3163fb98947
parent19681af44b7c7494ae8de28dab8aacc3e9d92390
Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
The Looper on the thread created in order to be notified of the
playback completion of notification sounds, was never stopped, causing
the threads to stay around in wait state.
The fix consists in quitting the Looper used for the previous sound
when a new sound is started.

Change-Id: Ia4b3d16b5447ffafacc093db3a7fe05574089935
services/java/com/android/server/NotificationPlayer.java