Formatting.

This commit is contained in:
GaidamakUA 2016-04-15 13:02:56 +03:00
parent 989cf70bb3
commit 8eab6893a2
2 changed files with 60 additions and 63 deletions

View file

@ -166,6 +166,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
}
}
}
@Override
public void onDraw(Canvas canvas, RotatedTileBox tileBox, DrawSettings settings) {
@ -191,7 +192,6 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
}
@Override
public boolean onLongPressEvent(PointF point, RotatedTileBox tileBox) {
return false;
@ -249,8 +249,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
if (deviceApiVersion >= android.os.Build.VERSION_CODES.GINGERBREAD) {
SITE_API = "https://api.openstreetmap.org/";
}
else {
} else {
SITE_API = "http://api.openstreetmap.org/";
}
@ -311,11 +310,10 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
}
private void asyncActionTask(final OpenStreetNote bug, final String text, final Action action) {
AsyncTask<Void, Void, OsmBugResult> task = new AsyncTask<Void, Void, OsmBugResult>() {
private OsmBugsUtil osmbugsUtil;
@Override
protected OsmBugResult doInBackground(Void... params) {
osmbugsUtil = getOsmbugsUtil(bug);
@ -325,6 +323,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
pnt.setLongitude(bug.getLongitude());
return osmbugsUtil.commit(pnt, text, action);
}
protected void onPostExecute(OsmBugResult obj) {
if (obj != null && obj.warning == null) {
if (local == osmbugsUtil) {
@ -458,8 +457,6 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
}
@Override
public String getObjectDescription(Object o) {
if (o instanceof OpenStreetNote) {
@ -607,12 +604,15 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public boolean isOpened() {
return opened;
}
public void setOpened(boolean opened) {
this.opened = opened;
}

View file

@ -100,8 +100,6 @@ public class OsmEditingPlugin extends OsmandPlugin {
}
public OsmBugsDbHelper getDBBug() {
if (dbbug == null) {
dbbug = new OsmBugsDbHelper(app);
@ -110,7 +108,6 @@ public class OsmEditingPlugin extends OsmandPlugin {
}
private OsmBugsLayer osmBugsLayer;
private OsmEditsLayer osmEditsLayer;
// private EditingPOIDialogProvider poiActions;