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

Commit

Permalink
fixed refresh problem (now multiple datasources work again)
Browse files Browse the repository at this point in the history
  • Loading branch information
abduegal authored and Daniele Gobbetti committed May 25, 2012
1 parent 5fe1455 commit 0dfb5ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/mixare/DataView.java
Expand Up @@ -225,7 +225,6 @@ public void draw(PaintScreen dw) {
if(dRes.getMarkers() != null){
//jLayer = (DataHandler) dRes.obj;
Log.i(MixView.TAG,"Adding Markers");
dataHandler = new DataHandler();
dataHandler.addMarkers(dRes.getMarkers());
dataHandler.onLocationChanged(curFix);
// Notification
Expand Down Expand Up @@ -422,6 +421,7 @@ public void cancelRefreshTimer() {
* Re-downloads the markers, and draw them on the map.
*/
public void refresh(){
dataHandler = new DataHandler();
state.nextLStatus = MixState.NOT_STARTED;
}

Expand Down

0 comments on commit 0dfb5ee

Please sign in to comment.