forked from upstream-mirrors/OpenTracks
Bugfix: crash on voice announcement if using imperial with meters
Fixes #1626
This commit is contained in:
committed by
Dennis Guse
parent
a4ec68def6
commit
6dd9630bae
+1
-1
@@ -52,7 +52,7 @@ class VoiceAnnouncementUtils {
|
||||
unitDistanceTTS = "kilometer";
|
||||
unitSpeedTTS = "kilometer per hour";
|
||||
}
|
||||
case IMPERIAL_FEET -> {
|
||||
case IMPERIAL_FEET, IMPERIAL_METER -> {
|
||||
perUnitStringId = R.string.voice_per_mile;
|
||||
distanceId = R.string.voiceDistanceMilesPlural;
|
||||
speedId = R.string.voiceSpeedMilesPerHourPlural;
|
||||
|
||||
Reference in New Issue
Block a user