From 6c86997d2c582e67690e9a63e77eb7e132c0719a Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 9 Sep 2020 18:04:56 +0300 Subject: [PATCH] crash fixed --- .../net/osmand/plus/development/OsmandDevelopmentPlugin.java | 2 +- OsmAnd/src/net/osmand/plus/server/ServerFragment.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java index 4a3b905744..dc3ce99996 100644 --- a/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java +++ b/OsmAnd/src/net/osmand/plus/development/OsmandDevelopmentPlugin.java @@ -96,7 +96,7 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin { if (activity != null) { activity.getSupportFragmentManager() .beginTransaction() - .replace(R.id.fragmentContainer, fragment, FirstUsageWizardFragment.TAG) + .replace(R.id.fragmentContainer, fragment, ServerFragment.TAG) .commitAllowingStateLoss(); } } diff --git a/OsmAnd/src/net/osmand/plus/server/ServerFragment.java b/OsmAnd/src/net/osmand/plus/server/ServerFragment.java index 1b9f73e05f..195c21bdac 100644 --- a/OsmAnd/src/net/osmand/plus/server/ServerFragment.java +++ b/OsmAnd/src/net/osmand/plus/server/ServerFragment.java @@ -24,6 +24,7 @@ import java.io.IOException; import static android.content.Context.WIFI_SERVICE; public class ServerFragment extends BaseOsmAndFragment { + public static final String TAG = "ServerFrag"; private final static Log LOG = PlatformUtil.getLog(ServerFragment.class); private final int port = 24990; final int THREAD_ID = 14231; // random number