Small edit to prevent Exception

This commit is contained in:
cepprice 2021-01-27 14:05:53 +05:00
parent 3afd8fc3bd
commit 943eaa6b7d

View file

@ -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();