diff options
author | Christopher Tate <ctate@google.com> | 2015-12-08 10:24:33 -0800 |
---|---|---|
committer | Christopher Tate <ctate@google.com> | 2015-12-08 10:24:33 -0800 |
commit | 7f2a035242fb8a118e8bcbf57db4f29697ed98bf (patch) | |
tree | ffdf74a5bd7cfd63479fac859dec55d0a0511341 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 95bdfae278d34123c76153d340bf5f413442d2a3 (diff) |
Don't leak alarm wakelock when delivery fails
If an app sets an alarm and then cancels the underlying PendingIntent,
delivery will fail in such a way that the OnFinished callback is not
invoked. The Alarm Manager relies on that callback for managing
wakelock lifetime, however; this meant that the wakelock acquisition
would leak, burning down the battery.
We now detect these sorts of delivery failures and manage the
wakelock appropriately.
Bug 25864361
Change-Id: I74af48e81002b29b129c41a76c0a8329c647390d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions