Fix #10658
This commit is contained in:
parent
92217cba9f
commit
3afd8fc3bd
2 changed files with 8 additions and 2 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
-->
|
||||
|
||||
<string name="toast_select_edits_for_upload">Select edits for upload</string>
|
||||
<string name="copy_to_map_favorites">Copy to favorites</string>
|
||||
<string name="copy_to_map_markers">Copy to map markers</string>
|
||||
<string name="delete_waypoints">Delete waypoints</string>
|
||||
|
|
|
@ -295,8 +295,13 @@ public class OsmEditsFragment extends OsmAndListFragment implements ProgressDial
|
|||
item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() {
|
||||
@Override
|
||||
public boolean onMenuItemClick(MenuItem item) {
|
||||
if (Algorithms.isEmpty(osmEditsSelected)) {
|
||||
Toast.makeText(requireContext(),
|
||||
R.string.toast_select_edits_for_upload, Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
uploadItems(osmEditsSelected.toArray(new OsmPoint[0]));
|
||||
mode.finish();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue