Merge branch 'master' of ssh://github.com/osmandapp/Osmand

This commit is contained in:
Victor Shcherb 2014-10-07 17:17:38 +03:00
commit e43128f76d
4 changed files with 8 additions and 8 deletions

View file

@ -14,7 +14,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import net.osmand.core.jni.BoolPtr;
import net.osmand.core.jni.ICoreResourcesProvider;
import net.osmand.core.jni.interface_ICoreResourcesProvider;
import net.osmand.core.jni.SWIGTYPE_p_QByteArray;
import net.osmand.core.jni.SWIGTYPE_p_bool;
import net.osmand.core.jni.SwigUtilities;
@ -27,7 +27,7 @@ import android.content.res.AssetManager;
import android.util.Log;
// This class provides reverse mapping from 'embed-resources.list' to files&folders scheme used by OsmAndCore_android.aar package
public class CoreResourcesFromAndroidAssetsCustom extends ICoreResourcesProvider {
public class CoreResourcesFromAndroidAssetsCustom extends interface_ICoreResourcesProvider {
private static final String TAG = "CoreResourcesFromAndroidAssets";
private static final String NATIVE_TAG = "CoreResourcesFromAndroidAssets";
@ -262,4 +262,4 @@ public class CoreResourcesFromAndroidAssetsCustom extends ICoreResourcesProvider
return bundle;
}
}
}

View file

@ -167,7 +167,7 @@ public class GLActivity extends Activity {
Log.i(TAG, "Initializing core...");
_coreResources = CoreResourcesFromAndroidAssetsCustom.loadFromCurrentApplication(this);
OsmAndCore.InitializeCore(_coreResources);
OsmAndCore.InitializeCore(_coreResources.instantiateProxy());
File directory =getApp().getAppPath("");
_fileLogSink = QIODeviceLogSink.createFileLogSink(directory.getAbsolutePath() + "/osmandcore.log");
@ -503,4 +503,4 @@ public class GLActivity extends Activity {
public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
}
}
}

View file

@ -406,7 +406,7 @@ public class WaypointHelper {
}
public void clearAllVisiblePoints() {
this.locationPointsStates.clear();
//this.locationPointsStates.clear();
this.locationPoints = new ArrayList<List<LocationPointWrapper>>();
}
@ -478,7 +478,7 @@ public class WaypointHelper {
protected synchronized void setLocationPoints(List<List<LocationPointWrapper>> locationPoints, RouteCalculationResult route) {
this.locationPoints = locationPoints;
this.locationPointsStates.clear();
//this.locationPointsStates.clear();
TIntArrayList list = new TIntArrayList(locationPoints.size());
list.fill(0, locationPoints.size(), 0);
this.pointsProgress = list;

View file

@ -125,7 +125,7 @@ public class NativeQtLibrary {
" referenceTileSize = " + referenceTileSize + " rasterTileSize = " + rasterTileSize);
Log.i(NATIVE_TAG, "Initializing core...");
CoreResourcesFromAndroidAssetsCustom coreResources = notGc(CoreResourcesFromAndroidAssetsCustom.loadFromCurrentApplication(app));
OsmAndCore.InitializeCore(coreResources);
OsmAndCore.InitializeCore(coreResources.instantiateProxy());
// initialize log
File directory = app.getAppPath("");