[battery] fix battery info watcher/initialization

Remove call to 'GetBatteryInfo' as watcher registration
now receives immediate callback with current info.

Check for battery status in updateBattery (only update
when status is 'ok')

Bug: go/fxb/41616

Change-Id: I82a044947c7e5412c2ac0008de6ea79f283b8ef2
1 file changed
tree: 2ecc9c404694a5201db8ad127729131a02328827
  1. base_shells/
  2. benchmarks/
  3. bin/
  4. examples/
  5. keyboard/
  6. lib/
  7. session_shells/
  8. settings/
  9. story_shells/
  10. tests/
  11. .gitignore
  12. analysis_options.yaml
  13. AUTHORS
  14. BUILD.gn
  15. CONTRIBUTING.md
  16. LICENSE
  17. OWNERS
  18. PATENTS
  19. README.md
README.md

Fuchsia Open Source Template Repository

This repository is a template that we will use when creating new open source repositories for Fuchsia.