Add padding in landscape

This commit is contained in:
Alexander Sytnyk 2017-11-10 17:56:43 +02:00
parent 504dd2555a
commit 9a70c096b1

View file

@ -35,6 +35,9 @@ public class TrackDetailsMenuFragment extends BaseOsmAndFragment {
menu = mapActivity.getMapLayers().getMapControlsLayer().getTrackDetailsMenu();
View view = inflater.inflate(R.layout.track_details, container, false);
if (!AndroidUiHelper.isOrientationPortrait(getActivity())) {
AndroidUtils.addStatusBarPadding21v(getActivity(), view);
}
if (menu == null || menu.getGpxItem() == null) {
return view;
}