Fix small issues

This commit is contained in:
Victor Shcherb 2015-11-15 20:48:27 +01:00
parent ea168480b3
commit 0251252f7e
2 changed files with 4 additions and 3 deletions

View file

@ -416,7 +416,7 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
} else {
title = R.string.osn_add_dialog_title;
}
AlertDialog dlg = (AlertDialog) dialog;
final AlertDialog dlg = (AlertDialog) dialog;
dlg.setTitle(title);
final View view = dlg.findViewById(R.id.layout);
Button btn = dlg.getButton(DialogInterface.BUTTON_POSITIVE);
@ -447,8 +447,9 @@ public class OsmBugsLayer extends OsmandMapLayer implements IContextMenuProvider
// AccessibleToast.makeText(activity, activity.getString(R.string.osb_author_or_password_not_specified),
// Toast.LENGTH_SHORT).show();
// }
asyncActionTask(bug, text, action);
activity.getContextMenu().close();
asyncActionTask(bug, text, action);
dlg.dismiss();
}
}
});

View file

@ -38,7 +38,7 @@ public class OsmBugsLocalUtil implements OsmBugsUtil {
@Override
public OsmBugResult reopenBug(double latitude, double longitude, long id, String text){
OsmNotesPoint p = new OsmNotesPoint();
p.setId(Math.min(-2, db.getMinID() -1));
p.setId(id);
p.setText(text);
p.setLatitude(latitude);
p.setLongitude(longitude);