From 548f8429217bc142fd77c04a3f0ff00edd5393e8 Mon Sep 17 00:00:00 2001 From: Alexander Sytnyk Date: Tue, 7 Nov 2017 17:59:22 +0200 Subject: [PATCH] Add padding from status bar --- .../mapcontextmenu/other/MapMultiSelectionMenuFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java index 9a77d5f849..76c19aaa5a 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/other/MapMultiSelectionMenuFragment.java @@ -55,6 +55,10 @@ public class MapMultiSelectionMenuFragment extends Fragment implements AdapterVi } ListView listView = (ListView) view.findViewById(R.id.list); + if (menu.isLandscapeLayout() && Build.VERSION.SDK_INT >= 21) { + AndroidUtils.addStatusBarPadding21v(getActivity(), listView); + listView.setClipToPadding(false); + } listAdapter = createAdapter(); listView.setAdapter(listAdapter); listView.setOnItemClickListener(this);