battery history details: update status bars on any change

Don't apply the "X axis (time) still within previous pixel" optimization
to the status bars below the battery level graph.  Keep the path cursor
position and previous state variables up-to-date in this case.

Bug: 8132455
Change-Id: I09390256e3e71d34813de655a1d01ec054ee778a
This commit is contained in:
Todd Poynor
2013-03-15 18:21:12 -07:00
parent 474958fc67
commit 56247a63fc

View File

@@ -557,6 +557,7 @@ public class BatteryHistoryChart extends View {
lastX = x; lastX = x;
lastY = y; lastY = y;
} }
}
final boolean charging = final boolean charging =
(rec.states&HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0; (rec.states&HistoryItem.STATE_BATTERY_PLUGGED_FLAG) != 0;
@@ -628,7 +629,6 @@ public class BatteryHistoryChart extends View {
} }
mPhoneSignalChart.addTick(x, bin); mPhoneSignalChart.addTick(x, bin);
} }
}
} else if (rec.cmd != BatteryStats.HistoryItem.CMD_OVERFLOW) { } else if (rec.cmd != BatteryStats.HistoryItem.CMD_OVERFLOW) {
if (curLevelPath != null) { if (curLevelPath != null) {