fix build

This commit is contained in:
sonora 2012-01-18 23:42:20 +01:00
parent 55d617ae6e
commit 1a9d8ffb2e

View file

@ -471,7 +471,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
updateApplicationDirTextAndSummary(); updateApplicationDirTextAndSummary();
applicationModePreference.setTitle(getString(R.string.settings_preset) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]"); applicationModePreference.setTitle(getString(R.string.settings_preset) + " [" + ApplicationMode.toHumanString(osmandSettings.APPLICATION_MODE.get(), this) + "]");
dayNightModePreference.setSummary(getString(R.string.daynight_descr) + " [" + osmandSettings.DayNightMode.toHumanStrings(osmandSettings.DAYNIGHT_MODE.get()) + "]"); dayNightModePreference.setSummary(getString(R.string.daynight_descr) + " [" + osmandSettings.DayNightMode.toHumanStrings(DAYNIGHT_MODE.get()) + "]");
routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]"); routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]");
} }
@ -578,7 +578,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
finish(); finish();
startActivity(intent); startActivity(intent);
} else if (listPref.getId().equals(osmandSettings.DAYNIGHT_MODE.getId())) { } else if (listPref.getId().equals(osmandSettings.DAYNIGHT_MODE.getId())) {
dayNightModePreference.setSummary(getString(R.string.daynight_descr) + " [" + osmandSettings.DayNightMode.toHumanStrings(osmandSettings.DAYNIGHT_MODE.get()) + "]"); dayNightModePreference.setSummary(getString(R.string.daynight_descr) + " [" + osmandSettings.DayNightMode.toHumanStrings(DAYNIGHT_MODE.get()) + "]");
} else if (listPref.getId().equals(osmandSettings.ROUTER_SERVICE.getId())) { } else if (listPref.getId().equals(osmandSettings.ROUTER_SERVICE.getId())) {
routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]"); routerServicePreference.setSummary(getString(R.string.router_service_descr) + " [" + osmandSettings.ROUTER_SERVICE.get() + "]");
} }