commit | 7c0ade56f38c61055e7d35a5e077d4f6f005b5bd | [log] [tgz] |
---|---|---|
author | Ben Kwa <kenobi@google.com> | Wed May 27 09:18:53 2015 -0700 |
committer | Ben Kwa <kenobi@google.com> | Wed May 27 09:19:28 2015 -0700 |
tree | 1e915b9ab2baccaacf3c1d19273547d6d43d254b | |
parent | 327c364113c18c9d5a05df0c912b65788461da41 [diff] |
Ensure that the copy notification is always cancelable. If the CopyService dies or is stopped for whatever reason, the cached "current" job ID will go to null. In that case, the cancel intent will be ignored, and the copy notification can never be dismissed. Adding a null check to the handleCancel method of CopyService fixes this. BUG=21365043 Change-Id: I0615328f6033a313fec79f8b63291c7f7373ea0f