Bugfix: preferred speed for nautical setting was not showing correct options.

This commit is contained in:
Dennis Guse
2023-10-03 17:28:01 +02:00
parent b3d610b791
commit 2c9726f643
2 changed files with 4 additions and 2 deletions
@@ -71,8 +71,10 @@ public class DefaultsSettingsFragment extends PreferenceFragmentCompat implement
int entriesId = switch (unitSystem) {
case METRIC -> R.array.stats_rate_metric_options;
case IMPERIAL_FEET, IMPERIAL_METER, NAUTICAL_IMPERIAL ->
case IMPERIAL_FEET, IMPERIAL_METER ->
R.array.stats_rate_imperial_options;
case NAUTICAL_IMPERIAL ->
R.array.stats_rate_nautical_options;
};
String[] entries = getResources().getStringArray(entriesId);