Removed LiveUpdates from developer options.
This commit is contained in:
parent
210592c1e8
commit
0a77d8bae0
3 changed files with 39 additions and 49 deletions
|
@ -888,9 +888,7 @@ public class OsmandSettings {
|
|||
public final OsmandPreference<Boolean> FAST_ROUTE_MODE = new BooleanPreference("fast_route_mode", true).makeProfile();
|
||||
// temporarily for new version
|
||||
public final CommonPreference<Boolean> DISABLE_COMPLEX_ROUTING = new BooleanPreference("disable_complex_routing", false).makeGlobal();
|
||||
|
||||
public final CommonPreference<Boolean> BETA_TESTING_LIVE_UPDATES = new BooleanPreference("live_updates_beta", false).makeGlobal();
|
||||
|
||||
|
||||
public final CommonPreference<Boolean> SHOW_TRAFFIC_WARNINGS = new BooleanPreference("show_traffic_warnings", false).makeProfile().cache();
|
||||
{
|
||||
SHOW_TRAFFIC_WARNINGS.setModeDefaultValue(ApplicationMode.CAR, true);
|
||||
|
|
|
@ -18,7 +18,6 @@ import net.osmand.plus.ApplicationMode;
|
|||
import net.osmand.plus.OsmAndLocationSimulation;
|
||||
import net.osmand.plus.OsmandApplication;
|
||||
import net.osmand.plus.R;
|
||||
import net.osmand.plus.Version;
|
||||
import net.osmand.plus.activities.SettingsBaseActivity;
|
||||
import net.osmand.plus.activities.actions.AppModeDialog;
|
||||
import net.osmand.util.SunriseSunset;
|
||||
|
@ -40,30 +39,25 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
super.onCreate(savedInstanceState);
|
||||
getToolbar().setTitle(R.string.debugging_and_development);
|
||||
PreferenceScreen cat = getPreferenceScreen();
|
||||
|
||||
CheckBoxPreference dbg = createCheckBoxPreference(settings.DEBUG_RENDERING_INFO,
|
||||
|
||||
CheckBoxPreference dbg = createCheckBoxPreference(settings.DEBUG_RENDERING_INFO,
|
||||
R.string.trace_rendering, R.string.trace_rendering_descr);
|
||||
cat.addPreference(dbg);
|
||||
|
||||
|
||||
cat.addPreference(createCheckBoxPreference(settings.DISABLE_COMPLEX_ROUTING,
|
||||
R.string.disable_complex_routing, R.string.disable_complex_routing_descr));
|
||||
|
||||
|
||||
cat.addPreference(createCheckBoxPreference(settings.USE_FAST_RECALCULATION,
|
||||
R.string.use_fast_recalculation, R.string.use_fast_recalculation_desc));
|
||||
|
||||
|
||||
|
||||
|
||||
cat.addPreference(createCheckBoxPreference(settings.USE_MAGNETIC_FIELD_SENSOR_COMPASS,
|
||||
R.string.use_magnetic_sensor,
|
||||
R.string.use_magnetic_sensor_descr));
|
||||
|
||||
|
||||
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);
|
||||
|
@ -90,8 +84,8 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
|
||||
@Override
|
||||
public void run() {
|
||||
simulate.setSummary(sim.isRouteAnimating() ?
|
||||
R.string.simulate_your_location_stop_descr : R.string.simulate_your_location_descr);
|
||||
simulate.setSummary(sim.isRouteAnimating() ?
|
||||
R.string.simulate_your_location_stop_descr : R.string.simulate_your_location_descr);
|
||||
}
|
||||
};
|
||||
pref.setTitle(R.string.simulate_your_location);
|
||||
|
@ -106,7 +100,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
}
|
||||
});
|
||||
cat.addPreference(pref);
|
||||
|
||||
|
||||
pref = new Preference(this);
|
||||
pref.setTitle(R.string.test_voice_prompts);
|
||||
pref.setSummary(R.string.play_commands_of_currently_selected_voice);
|
||||
|
@ -148,7 +142,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
//setEnabled(false) creates bad readability on some devices
|
||||
//pref.setEnabled(false);
|
||||
info.addPreference(pref);
|
||||
|
||||
|
||||
// ActivityManager activityManager = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
|
||||
// ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
|
||||
// activityManager.getMemoryInfo(memoryInfo);
|
||||
|
@ -157,7 +151,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
Debug.getMemoryInfo(mem);
|
||||
pref = new Preference(this);
|
||||
pref.setTitle(R.string.native_app_allocated_memory);
|
||||
pref.setSummary(getString(R.string.native_app_allocated_memory_descr
|
||||
pref.setSummary(getString(R.string.native_app_allocated_memory_descr
|
||||
, mem.nativePrivateDirty / 1024, mem.dalvikPrivateDirty / 1024 , mem.otherPrivateDirty / 1024
|
||||
, mem.nativePss / 1024, mem.dalvikPss / 1024 , mem.otherPss / 1024));
|
||||
pref.setSelectable(false);
|
||||
|
@ -188,7 +182,7 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
|||
}
|
||||
});
|
||||
info.addPreference(agpspref);
|
||||
|
||||
|
||||
SunriseSunset sunriseSunset = getMyApplication().getDaynightHelper().getSunriseSunset();
|
||||
pref = new Preference(this);
|
||||
pref.setTitle(R.string.day_night_info);
|
||||
|
|
|
@ -1,20 +1,15 @@
|
|||
package net.osmand.plus.resources;
|
||||
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import android.content.Context;
|
||||
import android.content.res.AssetManager;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.os.HandlerThread;
|
||||
import android.text.format.DateFormat;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.WindowManager;
|
||||
|
||||
import net.osmand.AndroidUtils;
|
||||
import net.osmand.GeoidAltitudeCorrection;
|
||||
|
@ -58,15 +53,20 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
import org.xmlpull.v1.XmlPullParserException;
|
||||
import org.xmlpull.v1.XmlPullParserFactory;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.AssetManager;
|
||||
import android.database.sqlite.SQLiteException;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.BitmapFactory;
|
||||
import android.os.HandlerThread;
|
||||
import android.text.format.DateFormat;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.view.WindowManager;
|
||||
import java.io.File;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.RandomAccessFile;
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/**
|
||||
* Resource manager is responsible to work with all resources
|
||||
|
@ -620,10 +620,8 @@ public class ResourceManager {
|
|||
collectFiles(context.getAppPath(IndexConstants.SRTM_INDEX_DIR), IndexConstants.BINARY_MAP_INDEX_EXT, files);
|
||||
}
|
||||
|
||||
if(context.getSettings().BETA_TESTING_LIVE_UPDATES.get()) {
|
||||
changesManager.collectChangesFiles(context.getAppPath(IndexConstants.LIVE_INDEX_DIR), IndexConstants.BINARY_MAP_INDEX_EXT, files);
|
||||
}
|
||||
|
||||
changesManager.collectChangesFiles(context.getAppPath(IndexConstants.LIVE_INDEX_DIR), IndexConstants.BINARY_MAP_INDEX_EXT, files);
|
||||
|
||||
Collections.sort(files, Algorithms.getFileVersionComparator());
|
||||
List<String> warnings = new ArrayList<String>();
|
||||
renderer.clearAllResources();
|
||||
|
|
Loading…
Reference in a new issue