summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2015-12-08 10:24:33 -0800
committerChristopher Tate <ctate@google.com>2015-12-08 10:24:33 -0800
commit7f2a035242fb8a118e8bcbf57db4f29697ed98bf (patch)
treeffdf74a5bd7cfd63479fac859dec55d0a0511341 /tools/aapt2/java/JavaClassGenerator.cpp
parent95bdfae278d34123c76153d340bf5f413442d2a3 (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