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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user