Merge commit '2e8bf1aa8291f8b0523b052d94cf1fcd6bf65cc7' * commit '2e8bf1aa8291f8b0523b052d94cf1fcd6bf65cc7': Fix drawing of phone signal chart.
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