Removed LiveUpdates from developer options.
This commit is contained in:
parent
210592c1e8
commit
0a77d8bae0
3 changed files with 39 additions and 49 deletions
|
@ -889,8 +889,6 @@ public class OsmandSettings {
|
||||||
// temporarily for new version
|
// temporarily for new version
|
||||||
public final CommonPreference<Boolean> DISABLE_COMPLEX_ROUTING = new BooleanPreference("disable_complex_routing", false).makeGlobal();
|
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();
|
public final CommonPreference<Boolean> SHOW_TRAFFIC_WARNINGS = new BooleanPreference("show_traffic_warnings", false).makeProfile().cache();
|
||||||
{
|
{
|
||||||
SHOW_TRAFFIC_WARNINGS.setModeDefaultValue(ApplicationMode.CAR, true);
|
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.OsmAndLocationSimulation;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.Version;
|
|
||||||
import net.osmand.plus.activities.SettingsBaseActivity;
|
import net.osmand.plus.activities.SettingsBaseActivity;
|
||||||
import net.osmand.plus.activities.actions.AppModeDialog;
|
import net.osmand.plus.activities.actions.AppModeDialog;
|
||||||
import net.osmand.util.SunriseSunset;
|
import net.osmand.util.SunriseSunset;
|
||||||
|
@ -59,11 +58,6 @@ public class SettingsDevelopmentActivity extends SettingsBaseActivity {
|
||||||
final CheckBoxPreference openGlRender = createCheckBoxPreference(settings.USE_OPENGL_RENDER, R.string.use_opengl_render,R.string.use_opengl_render_descr);
|
final CheckBoxPreference openGlRender = createCheckBoxPreference(settings.USE_OPENGL_RENDER, R.string.use_opengl_render,R.string.use_opengl_render_descr);
|
||||||
cat.addPreference(openGlRender);
|
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);
|
final Preference firstRunPreference = new Preference(this);
|
||||||
firstRunPreference.setTitle(R.string.simulate_initial_startup);
|
firstRunPreference.setTitle(R.string.simulate_initial_startup);
|
||||||
firstRunPreference.setSummary(R.string.simulate_initial_startup_descr);
|
firstRunPreference.setSummary(R.string.simulate_initial_startup_descr);
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
package net.osmand.plus.resources;
|
package net.osmand.plus.resources;
|
||||||
|
|
||||||
|
|
||||||
import java.io.File;
|
import android.content.Context;
|
||||||
import java.io.FileOutputStream;
|
import android.content.res.AssetManager;
|
||||||
import java.io.IOException;
|
import android.database.sqlite.SQLiteException;
|
||||||
import java.io.InputStream;
|
import android.graphics.Bitmap;
|
||||||
import java.io.RandomAccessFile;
|
import android.graphics.BitmapFactory;
|
||||||
import java.text.MessageFormat;
|
import android.os.HandlerThread;
|
||||||
import java.util.ArrayList;
|
import android.text.format.DateFormat;
|
||||||
import java.util.Collection;
|
import android.util.DisplayMetrics;
|
||||||
import java.util.Collections;
|
import android.view.WindowManager;
|
||||||
import java.util.Iterator;
|
|
||||||
import java.util.LinkedHashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
|
||||||
|
|
||||||
import net.osmand.AndroidUtils;
|
import net.osmand.AndroidUtils;
|
||||||
import net.osmand.GeoidAltitudeCorrection;
|
import net.osmand.GeoidAltitudeCorrection;
|
||||||
|
@ -58,15 +53,20 @@ import org.xmlpull.v1.XmlPullParser;
|
||||||
import org.xmlpull.v1.XmlPullParserException;
|
import org.xmlpull.v1.XmlPullParserException;
|
||||||
import org.xmlpull.v1.XmlPullParserFactory;
|
import org.xmlpull.v1.XmlPullParserFactory;
|
||||||
|
|
||||||
import android.content.Context;
|
import java.io.File;
|
||||||
import android.content.res.AssetManager;
|
import java.io.FileOutputStream;
|
||||||
import android.database.sqlite.SQLiteException;
|
import java.io.IOException;
|
||||||
import android.graphics.Bitmap;
|
import java.io.InputStream;
|
||||||
import android.graphics.BitmapFactory;
|
import java.io.RandomAccessFile;
|
||||||
import android.os.HandlerThread;
|
import java.text.MessageFormat;
|
||||||
import android.text.format.DateFormat;
|
import java.util.ArrayList;
|
||||||
import android.util.DisplayMetrics;
|
import java.util.Collection;
|
||||||
import android.view.WindowManager;
|
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
|
* Resource manager is responsible to work with all resources
|
||||||
|
@ -620,9 +620,7 @@ public class ResourceManager {
|
||||||
collectFiles(context.getAppPath(IndexConstants.SRTM_INDEX_DIR), IndexConstants.BINARY_MAP_INDEX_EXT, files);
|
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());
|
Collections.sort(files, Algorithms.getFileVersionComparator());
|
||||||
List<String> warnings = new ArrayList<String>();
|
List<String> warnings = new ArrayList<String>();
|
||||||
|
|
Loading…
Reference in a new issue