Fix crashes of (int -> String) default application mode - which resets that setting

This commit is contained in:
vshcherb 2014-03-30 13:39:15 +02:00
parent f505a48c2d
commit fb87f9093c

View file

@ -572,7 +572,7 @@ public class OsmandSettings {
public final OsmandPreference<String> AVAILABLE_APP_MODES = new StringPreference("available_application_modes", "car,bicycle,pedestrian,").makeGlobal().cache();
public final OsmandPreference<ApplicationMode> DEFAULT_APPLICATION_MODE = new CommonPreference<ApplicationMode>("default_application_mode", ApplicationMode.DEFAULT) {
public final OsmandPreference<ApplicationMode> DEFAULT_APPLICATION_MODE = new CommonPreference<ApplicationMode>("default_application_mode_string", ApplicationMode.DEFAULT) {
{
makeGlobal();
}