Fix #9552
This commit is contained in:
parent
08690f3c85
commit
e969309f81
1 changed files with 6 additions and 3 deletions
|
@ -27,6 +27,7 @@ import net.osmand.FileUtils;
|
||||||
import net.osmand.GPXUtilities;
|
import net.osmand.GPXUtilities;
|
||||||
import net.osmand.GPXUtilities.WptPt;
|
import net.osmand.GPXUtilities.WptPt;
|
||||||
import net.osmand.IndexConstants;
|
import net.osmand.IndexConstants;
|
||||||
|
import net.osmand.PlatformUtil;
|
||||||
import net.osmand.plus.OsmandApplication;
|
import net.osmand.plus.OsmandApplication;
|
||||||
import net.osmand.plus.R;
|
import net.osmand.plus.R;
|
||||||
import net.osmand.plus.UiUtilities;
|
import net.osmand.plus.UiUtilities;
|
||||||
|
@ -39,6 +40,8 @@ import net.osmand.plus.views.OsmandMapTileView;
|
||||||
import net.osmand.plus.widgets.OsmandTextFieldBoxes;
|
import net.osmand.plus.widgets.OsmandTextFieldBoxes;
|
||||||
import net.osmand.util.Algorithms;
|
import net.osmand.util.Algorithms;
|
||||||
|
|
||||||
|
import org.apache.commons.logging.Log;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -49,6 +52,7 @@ public class OnSaveCurrentTrackFragment extends BottomSheetDialogFragment {
|
||||||
|
|
||||||
public static final String TAG = "OnSaveCurrentTrackBottomSheetFragment";
|
public static final String TAG = "OnSaveCurrentTrackBottomSheetFragment";
|
||||||
public static final String SAVED_TRACKS_KEY = "saved_track_filename";
|
public static final String SAVED_TRACKS_KEY = "saved_track_filename";
|
||||||
|
private static final Log LOG = PlatformUtil.getLog(MapActivity.class);
|
||||||
|
|
||||||
private boolean openTrack = false;
|
private boolean openTrack = false;
|
||||||
private File file;
|
private File file;
|
||||||
|
@ -225,9 +229,8 @@ public class OnSaveCurrentTrackFragment extends BottomSheetDialogFragment {
|
||||||
f.setArguments(b);
|
f.setArguments(b);
|
||||||
try {
|
try {
|
||||||
f.show(fragmentManager, TAG);
|
f.show(fragmentManager, TAG);
|
||||||
} catch (IllegalStateException e) {
|
} catch (IllegalStateException ex) {
|
||||||
//java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
|
LOG.error("Can not perform this action after onSaveInstanceState");
|
||||||
e.printStackTrace();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue