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

Commit 6020071d authored by Ashish Sharma's avatar Ashish Sharma
Browse files

Include START event (reboots) in partial history.

Change-Id: Ia1e5fba6c2c7bdb3f09eb5958d7134564d60e8b0
parent 6ecbe3f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3303,7 +3303,8 @@ public abstract class BatteryStats implements Parcelable {
            if (rec.time >= histStart) {
                if (histStart >= 0 && !printed) {
                    if (rec.cmd == HistoryItem.CMD_CURRENT_TIME
                            || rec.cmd == HistoryItem.CMD_RESET) {
                            || rec.cmd == HistoryItem.CMD_RESET
                            || rec.cmd == HistoryItem.CMD_START) {
                        printed = true;
                        hprinter.printNextItem(pw, rec, baseTime, checkin,
                                (flags&DUMP_VERBOSE) != 0);