am 2f4698fd: Merge "frameworks/base: unlink death notifications of Vibrate requests"

* commit '2f4698fda46a3d2a6e78019588d77bae1cfa7193':
  frameworks/base: unlink death notifications of Vibrate requests
This commit is contained in:
Dianne Hackborn
2011-07-21 22:23:46 -07:00
committed by Android Git Automerger

View File

@ -379,6 +379,12 @@ public class VibratorService extends IVibratorService.Stub {
if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
synchronized (mVibrations) {
doCancelVibrateLocked();
int size = mVibrations.size();
for(int i = 0; i < size; i++) {
unlinkVibration(mVibrations.get(i));
}
mVibrations.clear();
}
}