"show on start" string not translatable

The "show on start" string in dashboard configuration is hardcoded in DashboardSettingsDialogFragment.java.
This commit is contained in:
aceman444 2015-09-15 13:29:00 +02:00
parent d1f532b3c3
commit 5f3d32717e

View file

@ -65,7 +65,7 @@ public class DashboardSettingsDialogFragment extends DialogFragment {
View view = LayoutInflater.from(getActivity()).inflate( View view = LayoutInflater.from(getActivity()).inflate(
R.layout.dashboard_settings_dialog_item, null, false); R.layout.dashboard_settings_dialog_item, null, false);
final TextView textView = (TextView) view.findViewById(R.id.text); final TextView textView = (TextView) view.findViewById(R.id.text);
textView.setText("Show on start"); textView.setText(R.string.show_on_start);
final OsmandSettings.CommonPreference<Boolean> shouldShowDashboardOnStart = final OsmandSettings.CommonPreference<Boolean> shouldShowDashboardOnStart =
settings.registerBooleanPreference(MapActivity.SHOULD_SHOW_DASHBOARD_ON_START, true); settings.registerBooleanPreference(MapActivity.SHOULD_SHOW_DASHBOARD_ON_START, true);
final CompoundButton compoundButton = (CompoundButton) view.findViewById(R.id.check_item); final CompoundButton compoundButton = (CompoundButton) view.findViewById(R.id.check_item);