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);
+1 -1
View File
@@ -268,7 +268,7 @@
<string name="publicapi_dashboard_enabled_key" translatable="false">apiDashboardEnabledKey</string>
<bool name="publicapi_dashboard_enabled_default">false</bool>
<string name="show_introduction_screen_key">showIntroduction</string>
<string name="show_introduction_screen_key" translatable="false">showIntroduction</string>
<bool name="show_introduction_screen_default">true</bool>
<!-- androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode() -->