From 3dd513c1e18e508cb1aa70022537dfb8cb809e10 Mon Sep 17 00:00:00 2001 From: PavelRatushny Date: Fri, 8 Sep 2017 12:40:41 +0300 Subject: [PATCH] Add on click listeners in show direction menu --- .../ShowDirectionBottomSheetDialogFragment.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapmarkers/ShowDirectionBottomSheetDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapmarkers/ShowDirectionBottomSheetDialogFragment.java index 9a6407944b..f057cfc319 100644 --- a/OsmAnd/src/net/osmand/plus/mapmarkers/ShowDirectionBottomSheetDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/mapmarkers/ShowDirectionBottomSheetDialogFragment.java @@ -61,6 +61,7 @@ public class ShowDirectionBottomSheetDialogFragment extends BottomSheetDialogFra return false; } }); + topBarImage.setOnClickListener(topBarOnClickListener); mainView.findViewById(R.id.widget_text).setOnTouchListener(new View.OnTouchListener() { @Override @@ -68,6 +69,7 @@ public class ShowDirectionBottomSheetDialogFragment extends BottomSheetDialogFra return false; } }); + widgetImage.setOnClickListener(widgetOnClickListener); } if (nightMode) { @@ -143,6 +145,21 @@ public class ShowDirectionBottomSheetDialogFragment extends BottomSheetDialogFra } } + private View.OnClickListener topBarOnClickListener = new View.OnClickListener() { + + @Override + public void onClick(View view) { + + } + }; + + private View.OnClickListener widgetOnClickListener = new View.OnClickListener() { + @Override + public void onClick(View view) { + + } + }; + interface ShowDirectionFragmentListener { }