Fix crash and tab

This commit is contained in:
Victor Shcherb 2015-08-04 01:22:06 +02:00
parent 3dea2faba8
commit b8466c1f67
2 changed files with 3 additions and 3 deletions

View file

@ -77,7 +77,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
public OsmBugsLayer(MapActivity activity, OsmEditingPlugin plugin){ public OsmBugsLayer(MapActivity activity, OsmEditingPlugin plugin){
this.activity = activity; this.activity = activity;
this.plugin = plugin; this.plugin = plugin;
local = new OsmBugsLocalUtil(activity); local = new OsmBugsLocalUtil(activity, plugin.getDBBug());
remote = new OsmBugsRemoteUtil(activity.getMyApplication()); remote = new OsmBugsRemoteUtil(activity.getMyApplication());
} }

View file

@ -12,9 +12,9 @@ public class OsmBugsLocalUtil implements OsmBugsUtil {
private final Context ctx; private final Context ctx;
private final OsmBugsDbHelper db; private final OsmBugsDbHelper db;
public OsmBugsLocalUtil(Context uiContext) { public OsmBugsLocalUtil(Context uiContext, OsmBugsDbHelper db) {
this.ctx = uiContext; this.ctx = uiContext;
this.db = new OsmBugsDbHelper(ctx); this.db = db;
} }
@Override @Override