OSDN Git Service

Register for fallback vibration's death
authorMichael Wright <michaelwr@google.com>
Fri, 9 Feb 2018 18:43:22 +0000 (18:43 +0000)
committerMichael Wright <michaelwr@google.com>
Fri, 9 Feb 2018 18:45:03 +0000 (18:45 +0000)
commit9da5a93b9a21122ca86c323772f6d2291c3525f2
tree21005c39efe8afaa6497312549a31b095c7be19d
parentf268bf573f671fdc051bf4485dc0ea972406ea38
Register for fallback vibration's death

If we don't link the fallback vibration's death then when we go to
unlink the vibration when it's done we crash with a NoSuchElement
exception. This way if the process that sent us the vibration dies then
the vibration also stops.

Bug: 73134668
Test: Trigger fallback vibration, doesn't crash
Change-Id: I8d8987773eaf45d7989ae46305a9f1558a73c5da
services/core/java/com/android/server/VibratorService.java