commit | 99abb711054e42c9cfa03cb484349923a9e5e699 | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Thu Jun 25 16:12:31 2020 -0400 |
committer | Fabian Kozynski <kozynski@google.com> | Fri Jun 26 14:18:58 2020 -0400 |
tree | b40573671c3a6499c42d12ad511e934ac80b8069 | |
parent | a9d76001a96f2a6aa12cfef8be50eddf4fe7c7f4 [diff] |
Initialize values from sticy ACTION_BATTERY_CHANGED ACTION_BATTERY_CHANGED is sent as a sticky, so classes in SystemUI need to retrieve the last value as part of initialization. As there is no API to retrieve this, the only solution is get the last sticky for now. Test: atest KeyguardUpdateMonitorTest BatteryControllerTest Test: manual, restart and observe battery icon Fixes: 159679049 Change-Id: I9e4ea67a34f9166b863abc8f99b687e542128f8b