Skip to content
This repository has been archived by the owner on Jun 7, 2018. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele Gobbetti committed Jun 1, 2012
2 parents b0d7659 + 1bc4d00 commit 3b94b4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="26" android:versionName="0.9.1" package="org.mixare" android:installLocation="auto">
android:versionCode="26" android:versionName="0.9.2" package="org.mixare" android:installLocation="auto">

<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="10"/>

Expand Down
16 changes: 9 additions & 7 deletions src/org/mixare/DataView.java
Expand Up @@ -95,6 +95,8 @@ public class DataView {
private ScreenLine rrl = new ScreenLine();
private float rx = 10, ry = 20;
private float addX = 0, addY = 0;

private List<Marker> markers;

/**
* Constructor
Expand Down Expand Up @@ -198,22 +200,22 @@ public void draw(PaintScreen dw) {
// Load Layer
if (state.nextLStatus == MixState.NOT_STARTED && !frozen) {
loadDrawLayer();
markers = new ArrayList<Marker>();
}
else if (state.nextLStatus == MixState.PROCESSING) {
DownloadManager dm = mixContext.getDownloadManager();
DownloadResult dRes = null;

if(dm.getResultSize() > 0){
List<Marker> markers = downloadDrawResults(dm, dRes);
dataHandler = new DataHandler();
dataHandler.addMarkers(markers);
dataHandler.onLocationChanged(curFix);
}
markers.addAll(downloadDrawResults(dm, dRes));

if (dm.isDone()) {
retry = 0;
state.nextLStatus = MixState.DONE;


dataHandler = new DataHandler();
dataHandler.addMarkers(markers);
dataHandler.onLocationChanged(curFix);

if (refresh == null) { // start the refresh timer if it is null
refresh = new Timer(false);
Date date = new Date(System.currentTimeMillis()
Expand Down
2 changes: 1 addition & 1 deletion src/org/mixare/MixView.java
Expand Up @@ -218,7 +218,7 @@ protected void onResume() {
killOnError();
getMixViewData().getMixContext().doResume(this);

getDataView().refresh();
repaint();
getDataView().doStart();
getDataView().clearEvents();

Expand Down

0 comments on commit 3b94b4c

Please sign in to comment.