Fix drawing of phone signal chart.
Change-Id: I15253624ab37d3a494a541d813ee1bf2187e145d
This commit is contained in:
@@ -560,7 +560,7 @@ public class BatteryHistoryChart extends View {
|
|||||||
int x = tick&PHONE_SIGNAL_X_MASK;
|
int x = tick&PHONE_SIGNAL_X_MASK;
|
||||||
int bin = (tick&PHONE_SIGNAL_BIN_MASK) >> PHONE_SIGNAL_BIN_SHIFT;
|
int bin = (tick&PHONE_SIGNAL_BIN_MASK) >> PHONE_SIGNAL_BIN_SHIFT;
|
||||||
if (lastBin != 0) {
|
if (lastBin != 0) {
|
||||||
canvas.drawRect(lastX, top, x, bottom, mPhoneSignalPaints[bin]);
|
canvas.drawRect(lastX, top, x, bottom, mPhoneSignalPaints[lastBin]);
|
||||||
}
|
}
|
||||||
lastBin = bin;
|
lastBin = bin;
|
||||||
lastX = x;
|
lastX = x;
|
||||||
|
Reference in New Issue
Block a user