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
public boolean onMenuItemClick(MenuItem item) {
if (Algorithms.isEmpty(osmEditsSelected)) {
Toast.makeText(requireContext(),
R.string.toast_select_edits_for_upload, Toast.LENGTH_LONG).show();
app.showToastMessage(R.string.toast_select_edits_for_upload);
} else {
uploadItems(osmEditsSelected.toArray(new OsmPoint[0]));
mode.finish();