Update strict mode
This commit is contained in:
parent
395f1ef385
commit
472efba592
4 changed files with 6 additions and 7 deletions
|
@ -234,7 +234,7 @@ public class NativeLibrary {
|
|||
// look for a pre-installed library
|
||||
if (path != null) {
|
||||
try {
|
||||
System.load(path + libBaseName);
|
||||
System.load(path + "/" + System.mapLibraryName(libBaseName));
|
||||
return true;
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
log.error(e);
|
||||
|
|
|
@ -30,10 +30,10 @@ import com.ibm.icu.text.DateFormat;
|
|||
public class TestRouting {
|
||||
|
||||
public static int MEMORY_TEST_LIMIT = 800;
|
||||
public static boolean TEST_WO_HEURISTIC = true;
|
||||
public static boolean TEST_BOTH_DIRECTION = true;
|
||||
public static boolean TEST_WO_HEURISTIC = false;
|
||||
public static boolean TEST_BOTH_DIRECTION = false;
|
||||
public static NativeLibrary lib = null;
|
||||
public static boolean oldRouting = true;
|
||||
public static boolean oldRouting = false;
|
||||
|
||||
|
||||
public static Iterator getIterator(Iterable it){
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="app_name">OsmAnd~</string>
|
||||
<string name="app_version">1.3 alpha</string>
|
||||
<string name="app_version">1.4 alpha</string>
|
||||
<!-- Not translatable -->
|
||||
<string name="ga_api_key">UA-28342846-2</string>
|
||||
<string name="ga_dispatchPeriod">10</string>
|
||||
|
|
|
@ -5,8 +5,7 @@ import android.os.StrictMode;
|
|||
public class EnableStrictMode {
|
||||
|
||||
public EnableStrictMode(){
|
||||
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectDiskWrites().detectNetwork().detectCustomSlowCalls().
|
||||
detectDiskReads().
|
||||
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().detectAll().
|
||||
penaltyLog()./*penaltyDeath().*/build());
|
||||
StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().detectAll().penaltyLog()./*penaltyDeath().*/build());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue