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

Commit 4553983e authored by Louis Chang's avatar Louis Chang Committed by Android (Google) Code Review
Browse files

Merge "Reports battery stats when an Activity is stopping from resumed state" into main

parents cfdf4aa8 04d3cf33
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -5681,6 +5681,7 @@ final class ActivityRecord extends WindowToken {
                // state. Updating the PAUSED usage state in that case, since the Activity will be
                // STOPPED while cycled through the PAUSED state.
                if (prevState == RESUMED) {
                    mAtmService.updateBatteryStats(this, false);
                    mAtmService.updateActivityUsageStats(this, Event.ACTIVITY_PAUSED);
                }
                break;