This commit is contained in:
Chumva 2019-06-25 18:38:33 +03:00
parent ee7882fa96
commit c60066986c

View file

@ -23,10 +23,10 @@ import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
import net.osmand.plus.UiUtilities;
import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin; import net.osmand.plus.OsmandPlugin;
import net.osmand.plus.R; import net.osmand.plus.R;
import net.osmand.plus.UiUtilities;
import net.osmand.plus.activities.MapActivity; import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.dialogs.ProgressDialogFragment; import net.osmand.plus.dialogs.ProgressDialogFragment;
import net.osmand.plus.osmedit.dialogs.SendPoiDialogFragment; import net.osmand.plus.osmedit.dialogs.SendPoiDialogFragment;
@ -53,6 +53,9 @@ public class OsmEditsUploadListenerHelper implements OsmEditsUploadListener {
@MainThread @MainThread
@Override @Override
public void uploadEnded(Map<OsmPoint, String> loadErrorsMap) { public void uploadEnded(Map<OsmPoint, String> loadErrorsMap) {
if (activity.getSupportFragmentManager().isStateSaved()) {
return;
}
int uploaded = 0; int uploaded = 0;
int pointsNum = loadErrorsMap.keySet().size(); int pointsNum = loadErrorsMap.keySet().size();
for (OsmPoint point : loadErrorsMap.keySet()) { for (OsmPoint point : loadErrorsMap.keySet()) {