From a9b1d5cc9995f568e54fb2bd023c0089fa61cc89 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 12 Mar 2018 19:22:54 +0200 Subject: [PATCH] Fix IllegalStateException --- OsmAnd/src/net/osmand/plus/helpers/ImportHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/helpers/ImportHelper.java b/OsmAnd/src/net/osmand/plus/helpers/ImportHelper.java index a7c2593f1b..21f4f6a048 100644 --- a/OsmAnd/src/net/osmand/plus/helpers/ImportHelper.java +++ b/OsmAnd/src/net/osmand/plus/helpers/ImportHelper.java @@ -659,7 +659,9 @@ public class ImportHelper { fragment.setFileName(fileName); fragment.setSave(save); fragment.setUseImportDir(useImportDir); - fragment.show(activity.getSupportFragmentManager(), ImportGpxBottomSheetDialogFragment.TAG); + activity.getSupportFragmentManager().beginTransaction() + .add(fragment, ImportGpxBottomSheetDialogFragment.TAG) + .commitAllowingStateLoss(); } }