OSDN Git Service

Fix 6485058: remove OnTriggerListeners from Wave*Methods in cleanup
authorJim Miller <jaggies@google.com>
Fri, 11 May 2012 23:11:17 +0000 (16:11 -0700)
committerJim Miller <jaggies@google.com>
Fri, 11 May 2012 23:11:17 +0000 (16:11 -0700)
commit8818edbe2f5bef9cf161ef57e9296ff302ad44f6
treea9cad99638f3363fa29fa2f3276f2e7e23ec39a8
parentab1c5456b789205ef305b19e5a7682b6561aacac
Fix 6485058: remove OnTriggerListeners from Wave*Methods in cleanup

This fixes a rare crash that could happen when the device orientation
changes while the handle is held over a target.  LockScreen.cleanUp()
was being called which set mCallback to null which then causes it
to crash in MultiWaveViewMethods.onTrigger().

The solution is to also remove OnTriggerListeners in LockScreen.cleanup().

Change-Id: I487c7c9dbbe40417e685b39f2e79b1c43b30fa00
policy/src/com/android/internal/policy/impl/LockScreen.java