From f8d1ae83a7353aba15dd866f91d827069f51ed2a Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Mon, 10 Jul 2017 14:50:04 +0300 Subject: [PATCH] Hide share button --- .../net/osmand/plus/myplaces/SplitSegmentFragment.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java index 67314082a6..5618ef79b7 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/SplitSegmentFragment.java @@ -8,6 +8,8 @@ import android.support.annotation.Nullable; import android.support.v7.widget.ListPopupWindow; import android.view.Gravity; import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuInflater; import android.view.View; import android.view.ViewGroup; import android.widget.AbsListView; @@ -74,6 +76,12 @@ public class SplitSegmentFragment extends OsmAndListFragment { getMyActivity().onAttachFragment(this); } + @Override + public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { + menu.clear(); + getMyActivity().getClearToolbar(false); + } + @Override public ArrayAdapter getAdapter() { return adapter;