commit | 0ec832bba2ec5c5e45ff03184ecb95890447acb2 | [log] [tgz] |
---|---|---|
author | Soonil Nagarkar <sooniln@google.com> | Wed Sep 22 16:31:32 2021 -0700 |
committer | Soonil Nagarkar <sooniln@google.com> | Wed Sep 22 23:35:16 2021 +0000 |
tree | 9c8bc680b43a2aad3b920edc7abc842bc126c179 | |
parent | ea07bec30f0e62be4b5836f70e175e142b1715b9 [diff] |
Only allow completion callback to be run once for PIs PendingIntent.send() should either throw an exception OR run it's completion callback, but not both. However, a bug that is not fixable in the near term means that it's possible for both to happen. In order to avoid the completion callback from being run even if send() fails, we gate it. Bug: 199464864 Test: manual + presubmits Change-Id: I993436b2bd2ec5240be92e6d3815b3a9edef970f