Fix crash and tab
This commit is contained in:
parent
3dea2faba8
commit
b8466c1f67
2 changed files with 3 additions and 3 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue