diff --git a/OsmAnd/res/xml/settings_pref.xml b/OsmAnd/res/xml/settings_pref.xml index a81fbff5f8..2441fa5e16 100644 --- a/OsmAnd/res/xml/settings_pref.xml +++ b/OsmAnd/res/xml/settings_pref.xml @@ -1,7 +1,7 @@ - + diff --git a/OsmAnd/src/net/osmand/plus/activities/ApplicationMode.java b/OsmAnd/src/net/osmand/plus/activities/ApplicationMode.java index 391aea0c88..32fc9a9f86 100644 --- a/OsmAnd/src/net/osmand/plus/activities/ApplicationMode.java +++ b/OsmAnd/src/net/osmand/plus/activities/ApplicationMode.java @@ -19,8 +19,8 @@ public enum ApplicationMode { this.key = key; } - public static String toHumanString(ApplicationMode m, Context ctx) { - return ctx.getResources().getString(m.key); + public String toHumanString(Context ctx) { + return ctx.getResources().getString(key); } } \ No newline at end of file diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java index aa4b321c1b..9b174fe345 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java @@ -57,6 +57,8 @@ import android.preference.Preference.OnPreferenceClickListener; import android.preference.PreferenceActivity; import android.preference.PreferenceCategory; import android.preference.PreferenceScreen; +import android.util.AttributeSet; +import android.view.View; import android.widget.Toast; public class SettingsActivity extends PreferenceActivity implements OnPreferenceChangeListener, OnPreferenceClickListener { @@ -321,7 +323,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference entries = new String[ApplicationMode.values().length]; for(int i=0; i