commit
6b29b19dc8
3 changed files with 6 additions and 3 deletions
|
@ -265,14 +265,14 @@
|
|||
|
||||
<include
|
||||
layout="@layout/move_marker_bottom_sheet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|left"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<include
|
||||
layout="@layout/add_gpx_point_bottom_sheet"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|left"
|
||||
tools:visibility="visible"/>
|
||||
|
|
|
@ -340,6 +340,9 @@ public class MapActivity extends OsmandActionBarActivity implements DownloadEven
|
|||
if (removeFragment(PlanRouteFragment.TAG)) {
|
||||
app.getMapMarkersHelper().getPlanRouteContext().setFragmentVisible(true);
|
||||
}
|
||||
if (TrackDetailsMenu.isVisible()) {
|
||||
mapLayers.getMapControlsLayer().getTrackDetailsMenu().hide();
|
||||
}
|
||||
removeFragment(ImportGpxBottomSheetDialogFragment.TAG);
|
||||
super.onSaveInstanceState(outState);
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ public class TrackDetailsMenuFragment extends BaseOsmAndFragment {
|
|||
|
||||
public static boolean showInstance(final MapActivity mapActivity) {
|
||||
try {
|
||||
boolean portrait = mapActivity.findViewById(R.id.bottomFragmentContainer) != null;
|
||||
boolean portrait = AndroidUiHelper.isOrientationPortrait(mapActivity);
|
||||
TrackDetailsMenuFragment fragment = new TrackDetailsMenuFragment();
|
||||
mapActivity.getSupportFragmentManager().beginTransaction()
|
||||
.add(portrait ? R.id.bottomFragmentContainer : R.id.routeMenuContainer, fragment, TAG)
|
||||
|
|
Loading…
Reference in a new issue