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

Commit 42549b26 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Only fillLowPowerStats when needed" into sc-dev am: e7c2db0c am: 2a46e572

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15277352

Change-Id: If1182f10e883f8f289f03a0a8e5758d800b528b3
parents 8044ff4d 2a46e572
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -579,8 +579,10 @@ class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStatsSync {
            }
        }

        if ((updateFlags & BatteryStatsImpl.ExternalStatsSync.UPDATE_RPM) != 0) {
            // Collect the latest low power stats without holding the mStats lock.
            mStats.fillLowPowerStats();
        }

        final WifiActivityEnergyInfo wifiInfo = awaitControllerInfo(wifiReceiver);
        final BluetoothActivityEnergyInfo bluetoothInfo = awaitControllerInfo(bluetoothReceiver);