Small edit to prevent Exception
This commit is contained in:
parent
3afd8fc3bd
commit
943eaa6b7d
1 changed files with 1 additions and 2 deletions
|
@ -296,8 +296,7 @@ public class OsmEditsFragment extends OsmAndListFragment implements ProgressDial
|
||||||
@Override
|
@Override
|
||||||
public boolean onMenuItemClick(MenuItem item) {
|
public boolean onMenuItemClick(MenuItem item) {
|
||||||
if (Algorithms.isEmpty(osmEditsSelected)) {
|
if (Algorithms.isEmpty(osmEditsSelected)) {
|
||||||
Toast.makeText(requireContext(),
|
app.showToastMessage(R.string.toast_select_edits_for_upload);
|
||||||
R.string.toast_select_edits_for_upload, Toast.LENGTH_LONG).show();
|
|
||||||
} else {
|
} else {
|
||||||
uploadItems(osmEditsSelected.toArray(new OsmPoint[0]));
|
uploadItems(osmEditsSelected.toArray(new OsmPoint[0]));
|
||||||
mode.finish();
|
mode.finish();
|
||||||
|
|
Loading…
Reference in a new issue