Include START event (reboots) in partial history.

Change-Id: Ia1e5fba6c2c7bdb3f09eb5958d7134564d60e8b0
This commit is contained in:
Ashish Sharma
2014-05-23 18:22:20 -07:00
parent 6ecbe3f2d6
commit 6020071df9

View File

@@ -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);