DescriptionFix NFC crasher from accessing a destroyed activity.
While this works, it would be better to have a clearer signal that
the Activity died (or is in the process of shutting down) so we
could make a better timed decision to disable NFC reading.
Also note that Activity#isDestroyed() is only available in
JELLY_BEAN_MR1, so this is not the best solution for all device
implementations that need to determine this.
BUG=640890
Committed: https://crrev.com/1ff2cc181eb07396527b76ba2e15d48684c27d15
Cr-Commit-Position: refs/heads/master@{#415441}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|