crash fixed

This commit is contained in:
simon 2020-09-09 18:04:56 +03:00
parent 2cd4e23463
commit 6c86997d2c
2 changed files with 2 additions and 1 deletions

View file

@ -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();
}
}

View file

@ -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