mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-03 09:53:06 +02:00
In the ChartSettingsDialog, update whether to display speed
or pace when calling onPrepareDialog. Change the x_axis.png and y_axis.png to white foreground so they show up on the black background. Clean up chart_settings.xml - no need to specify minWidth by placing the title inside a TableLayout - align text to the bottom of the image
This commit is contained in:
@@ -89,6 +89,15 @@ public class ChartSettingsDialog extends Dialog {
|
||||
? R.id.chart_settings_by_distance
|
||||
: R.id.chart_settings_by_time);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether to display speed or pace.
|
||||
*
|
||||
* @param displaySpeed true to display speed
|
||||
*/
|
||||
public void setDisplaySpeed(boolean displaySpeed) {
|
||||
series[ChartView.SPEED_SERIES].setText(displaySpeed ? R.string.stat_speed : R.string.stat_pace);
|
||||
}
|
||||
|
||||
public void setSeriesEnabled(int seriesIdx, boolean enabled) {
|
||||
series[seriesIdx].setChecked(enabled);
|
||||
|
||||
Reference in New Issue
Block a user