From c60066986ce2e9f33faac603715d1bf06963eaf9 Mon Sep 17 00:00:00 2001 From: Chumva Date: Tue, 25 Jun 2019 18:38:33 +0300 Subject: [PATCH] Fix #7069 --- .../osmand/plus/osmedit/OsmEditsUploadListenerHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java index 2d09804f5e..4831933676 100644 --- a/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java +++ b/OsmAnd/src/net/osmand/plus/osmedit/OsmEditsUploadListenerHelper.java @@ -23,10 +23,10 @@ import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; -import net.osmand.plus.UiUtilities; import net.osmand.plus.OsmandApplication; import net.osmand.plus.OsmandPlugin; import net.osmand.plus.R; +import net.osmand.plus.UiUtilities; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.dialogs.ProgressDialogFragment; import net.osmand.plus.osmedit.dialogs.SendPoiDialogFragment; @@ -53,6 +53,9 @@ public class OsmEditsUploadListenerHelper implements OsmEditsUploadListener { @MainThread @Override public void uploadEnded(Map loadErrorsMap) { + if (activity.getSupportFragmentManager().isStateSaved()) { + return; + } int uploaded = 0; int pointsNum = loadErrorsMap.keySet().size(); for (OsmPoint point : loadErrorsMap.keySet()) {