DescriptionThere are much more APPLICATION_STATE_HAS_RUNNING_ACTIVITIES
updates than we expected (by mapping to both activity.onstart
and activity.onresume). And we only care the state changes
from RUNNING->STOPPED->RUNNING (activity.onStart following
activty.stop) to release/resume camera devices accordingly.
So it's better to do the filtering earlier in
app_status_listener_ callback than making a
decision later by checking capturing status.
BUG=615557
TEST=AutoTest
Committed: https://crrev.com/3a8419c19e31739040e0eb30d2aef80cca469584
Cr-Commit-Position: refs/heads/master@{#402564}
Patch Set 1 #
Total comments: 2
Patch Set 2 : address comments #
Messages
Total messages: 12 (6 generated)
|