From 8768c4867f56b3a28bb0f8c12f31a7d5b8ca465f Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 26 Oct 2015 22:49:24 +0100 Subject: [PATCH] sort dev menu --- OsmAnd/res/values/strings.xml | 4 ++-- .../SettingsDevelopmentActivity.java | 20 +++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index ceb10ec9ca..e134123f40 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -10,7 +10,7 @@ PLEASE: Have a look at http://code.google.com/p/osmand/wiki/UIConsistency, it may really improve your and our work :-) Thx - Hardy --> "Resets flag indicating first startup, keep other settings in the original state" - Simulate initial startup + Simulate first app start geo: Share location Send @@ -44,7 +44,7 @@ GPS wake-up interval Favorite information Stop simulating your position - Simulate using recorded GPX or calculated route + Simulate using calculated route or recorded GPX Address is not known yet GPX file with note locations Locations diff --git a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java index 105d073904..4d11031613 100644 --- a/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java +++ b/OsmAnd/src/net/osmand/plus/development/SettingsDevelopmentActivity.java @@ -58,7 +58,11 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { final CheckBoxPreference openGlRender = createCheckBoxPreference(settings.USE_OPENGL_RENDER, R.string.use_opengl_render,R.string.use_opengl_render_descr); cat.addPreference(openGlRender); - + if(Version.isDeveloperVersion(getMyApplication())) { + cat.addPreference(createCheckBoxPreference(settings.BETA_TESTING_LIVE_UPDATES, + "Live updates", "Beta testing for live updates")); + } + final Preference firstRunPreference = new Preference(this); firstRunPreference.setTitle(R.string.simulate_initial_startup); firstRunPreference.setSummary(R.string.simulate_initial_startup_descr); @@ -74,10 +78,10 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { }); cat.addPreference(firstRunPreference); - if(Version.isDeveloperVersion(getMyApplication())) { - cat.addPreference(createCheckBoxPreference(settings.BETA_TESTING_LIVE_UPDATES, - "Live updates", "Beta testing for live updates")); - } + cat.addPreference(createCheckBoxPreference(settings.SHOULD_SHOW_FREE_VERSION_BANNER, + R.string.show_free_version_banner, + R.string.show_free_version_banner_description)); + Preference pref = new Preference(this); final Preference simulate = pref; final OsmAndLocationSimulation sim = getMyApplication().getLocationProvider().getLocationSimulation(); @@ -114,8 +118,6 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { } }); cat.addPreference(pref); - - pref = new Preference(this); pref.setTitle(R.string.app_modes_choose); @@ -196,10 +198,6 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity { //setEnabled(false) creates bad readability on some devices //pref.setEnabled(false); cat.addPreference(pref); - - cat.addPreference(createCheckBoxPreference(settings.SHOULD_SHOW_FREE_VERSION_BANNER, - R.string.show_free_version_banner, - R.string.show_free_version_banner_description)); } protected void availableProfileDialog() {