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

Commit 2d874d39 authored by Xinyi Mao's avatar Xinyi Mao Committed by Android (Google) Code Review
Browse files

Merge "Skip recalculate all data in Periodic Job while multi-users." into main

parents db315e64 4fcab412
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -588,7 +588,8 @@ public class DataProcessManager {
                        lastFullChargeTime,
                        DatabaseUtils.BATTERY_LEVEL_RECORD_EVENTS);
        final long startTimestamp =
                (batteryLevelRecordEvents.isEmpty() || !userIdsSeries.isMainUserProfileOnly())
                (batteryLevelRecordEvents.isEmpty()
                                || (!isFromPeriodJob && !userIdsSeries.isMainUserProfileOnly()))
                        ? lastFullChargeTime
                        : batteryLevelRecordEvents.get(0).getTimestamp();
        final BatteryLevelData batteryLevelData =