commit | 805d353224ba1994b78abef5aed420a90f6b4b43 | [log] [tgz] |
---|---|---|
author | Etan Cohen <etancohen@google.com> | Tue Sep 09 12:00:59 2014 -0700 |
committer | The Android Automerger <android-build@google.com> | Tue Sep 09 15:20:51 2014 -0700 |
tree | cdaf7b44d4b9a412b5eb265625cb7717f46fc93f | |
parent | 74f2a5dd22ea96efd3c0430c623392d3fe7581e1 [diff] |
Validate that Handler being cleared is the one currently registered. The BaseCommands.unsetOnXXX(Handler h) cleared the current singleton registrant without validating that it was the same Handler used in the argument. Out-of-order set/unset would cause a problem. Bug: 17436226 Change-Id: I53a264e517f7cbef9e243c628102817a376da29d