mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Round large work values to kJ
This commit is contained in:
+5
@@ -200,6 +200,11 @@ public class WorkoutValueFormatter {
|
|||||||
unit = UNIT_MINUTES_PER_100_METERS;
|
unit = UNIT_MINUTES_PER_100_METERS;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case ActivitySummaryEntries.UNIT_JOULE:
|
||||||
|
if (value > 10000) {
|
||||||
|
value = value / 1000D;
|
||||||
|
unit = "unit_kilojoule";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2844,6 +2844,7 @@
|
|||||||
<string name="unit_millimeter">mm</string>
|
<string name="unit_millimeter">mm</string>
|
||||||
<string name="unit_watt">Watt</string>
|
<string name="unit_watt">Watt</string>
|
||||||
<string name="unit_joule">Joule</string>
|
<string name="unit_joule">Joule</string>
|
||||||
|
<string name="unit_kilojoule">kJ</string>
|
||||||
<string name="training_load">Training Load</string>
|
<string name="training_load">Training Load</string>
|
||||||
<string name="standing_count">Standing count</string>
|
<string name="standing_count">Standing count</string>
|
||||||
<string name="average_left_platform_center_offset">Avg Left Platform Center Offset</string>
|
<string name="average_left_platform_center_offset">Avg Left Platform Center Offset</string>
|
||||||
|
|||||||
Reference in New Issue
Block a user