Poi deletion message.
This commit is contained in:
parent
fd2faeb146
commit
7e7d118cbe
1 changed files with 6 additions and 5 deletions
|
@ -20,9 +20,8 @@ import net.osmand.plus.osmedit.OpenstreetmapUtil;
|
||||||
import net.osmand.plus.osmedit.OsmEditingPlugin;
|
import net.osmand.plus.osmedit.OsmEditingPlugin;
|
||||||
import net.osmand.plus.osmedit.OsmPoint;
|
import net.osmand.plus.osmedit.OsmPoint;
|
||||||
|
|
||||||
/**
|
import java.text.MessageFormat;
|
||||||
* Created by GaidamakUA on 8/28/15.
|
|
||||||
*/
|
|
||||||
public class DeletePoiDialogFragment extends DialogFragment {
|
public class DeletePoiDialogFragment extends DialogFragment {
|
||||||
private static final String KEY_AMENITY_NODE = "amenity_node";
|
private static final String KEY_AMENITY_NODE = "amenity_node";
|
||||||
|
|
||||||
|
@ -37,7 +36,7 @@ public class DeletePoiDialogFragment extends DialogFragment {
|
||||||
|
|
||||||
final Bundle args = getArguments();
|
final Bundle args = getArguments();
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
||||||
builder.setTitle(R.string.poi_remove_title);;
|
builder.setTitle(R.string.poi_remove_title);
|
||||||
builder.setNegativeButton(R.string.shared_string_cancel, null);
|
builder.setNegativeButton(R.string.shared_string_cancel, null);
|
||||||
builder.setPositiveButton(R.string.shared_string_delete, new DialogInterface.OnClickListener() {
|
builder.setPositiveButton(R.string.shared_string_delete, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -48,7 +47,9 @@ public class DeletePoiDialogFragment extends DialogFragment {
|
||||||
new Runnable() {
|
new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
AccessibleToast.makeText(activity, R.string.poi_remove_success,
|
AccessibleToast.makeText(activity, MessageFormat.format(
|
||||||
|
getString(R.string.poi_action_succeded_template),
|
||||||
|
getString(R.string.poi_action_delete)),
|
||||||
Toast.LENGTH_LONG).show();
|
Toast.LENGTH_LONG).show();
|
||||||
if (activity instanceof MapActivity) {
|
if (activity instanceof MapActivity) {
|
||||||
((MapActivity) activity).getMapView().refreshMap(true);
|
((MapActivity) activity).getMapView().refreshMap(true);
|
||||||
|
|
Loading…
Reference in a new issue