forked from upstream-mirrors/OpenTracks
Code cleanup.
This commit is contained in:
@@ -47,9 +47,9 @@ abstract class ChartValueSeries {
|
|||||||
private final Paint strokePaint;
|
private final Paint strokePaint;
|
||||||
private final Paint titlePaint;
|
private final Paint titlePaint;
|
||||||
private final Paint markerPaint;
|
private final Paint markerPaint;
|
||||||
private final ExtremityMonitor extremityMonitor;
|
private final ExtremityMonitor extremityMonitor = new ExtremityMonitor();
|
||||||
private final NumberFormat numberFormat;
|
private final NumberFormat numberFormat = NumberFormat.getIntegerInstance();
|
||||||
private final Path path;
|
private final Path path = new Path();
|
||||||
|
|
||||||
private int interval = 1;
|
private int interval = 1;
|
||||||
private int minMarkerValue = 0;
|
private int minMarkerValue = 0;
|
||||||
@@ -98,10 +98,6 @@ abstract class ChartValueSeries {
|
|||||||
|
|
||||||
// Set stroke paint thickness
|
// Set stroke paint thickness
|
||||||
strokePaint.setStrokeWidth(STROKE_WIDTH);
|
strokePaint.setStrokeWidth(STROKE_WIDTH);
|
||||||
|
|
||||||
extremityMonitor = new ExtremityMonitor();
|
|
||||||
numberFormat = NumberFormat.getIntegerInstance();
|
|
||||||
path = new Path();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ limitations under the License.
|
|||||||
<color name="chart_power_fill">#40401465</color> <!-- transparent purple -->
|
<color name="chart_power_fill">#40401465</color> <!-- transparent purple -->
|
||||||
<color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
|
<color name="chart_speed_border">#FF0066FF</color> <!-- blue -->
|
||||||
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
|
<color name="chart_speed_fill">#40C8E0FF</color> <!-- transparent blue -->
|
||||||
|
|
||||||
<color name="holo_orange_dark">#FFFF8800</color>
|
<color name="holo_orange_dark">#FFFF8800</color>
|
||||||
|
|
||||||
<color name="recording_text">#FFBE161B</color> <!-- red -->
|
<color name="recording_text">#FFBE161B</color> <!-- red -->
|
||||||
|
|||||||
Reference in New Issue
Block a user