Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2795cca1 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz Committed by Po-Chien Hsueh
Browse files

Set AppStandbyController charging state on init

Test: manual (restart device and "adb shell dumpsys usagestats | grep
mCharging=")
Test: CtsHostsideNetworkTests
Fixes:80545083

Change-Id: I0592622b83525159eeca611b3cc1021347bc53ca
Merged-In: I0592622b83525159eeca611b3cc1021347bc53ca
(cherry-picked from 13b1e177)
(cherry picked from commit 4d5b4b03c8065fc6421456a6135f6d247d2d1dd5)
parent 421449a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,8 +207,8 @@ public class UsageStatsService extends SystemService implements

    @Override
    public void onBootPhase(int phase) {
        if (phase == PHASE_SYSTEM_SERVICES_READY) {
        mAppStandby.onBootPhase(phase);
        if (phase == PHASE_SYSTEM_SERVICES_READY) {
            // initialize mDpmInternal
            getDpmInternal();