mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-13 14:23:07 +02:00
Give an weight input dialog when the weight value is not set yet. Make the weight value/display can be changed by unit setting.
This commit is contained in:
@@ -106,7 +106,7 @@ public class PreferencesUtils {
|
||||
public static final boolean STATS_SHOW_GRADE_ELEVATION_DEFAULT = false;
|
||||
public static final String STATS_UNITS_DEFAULT = "METRIC";
|
||||
public static final boolean STATS_SHOW_CALORIE_DEFAULT = false;
|
||||
public static final int STATS_WEIGHT_DEFAULT = 65; //in kilogram
|
||||
public static final int STATS_WEIGHT_DEFAULT = 65; // in kilogram
|
||||
|
||||
// Track color
|
||||
public static final String TRACK_COLOR_MODE_DEFAULT = "SINGLE";
|
||||
|
||||
@@ -45,6 +45,12 @@ public class UnitConversions {
|
||||
// multiplication factor to convert kilometers to miles
|
||||
public static final double KM_TO_MI = 0.621371192;
|
||||
|
||||
// multiplication factor to convert kilogram to pounds
|
||||
public static final double KG_TO_LB = 2.2046;
|
||||
|
||||
// multiplication factor to convert kilogram to pounds
|
||||
public static final double LB_TO_KG = 1 / KG_TO_LB;
|
||||
|
||||
// multiplication factor to convert miles to kilometers
|
||||
public static final double MI_TO_KM = 1 / KM_TO_MI;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user